首頁(yè) 收藏 QQ群
 網(wǎng)站導(dǎo)航

ZNDS智能電視網(wǎng) 推薦當(dāng)貝市場(chǎng)

TV應(yīng)用下載 / 資源分享區(qū)

軟件下載 | 游戲 | 討論 | 電視計(jì)算器

綜合交流 / 評(píng)測(cè) / 活動(dòng)區(qū)

交流區(qū) | 測(cè)硬件 | 網(wǎng)站活動(dòng) | Z幣中心

新手入門(mén) / 進(jìn)階 / 社區(qū)互助

新手 | 你問(wèn)我答 | 免費(fèi)刷機(jī)救磚 | ROM固件

樓主: NadOo
上一主題 下一主題
[教程]

ZTE B860A 有線(itv dhcp) + wifi(互聯(lián)網(wǎng)) 雙線自動(dòng)切換腳本

  [復(fù)制鏈接]
81#
發(fā)表于 2016-11-3 09:49 | 只看該作者 | 來(lái)自湖南
本帖最后由 cashwl 于 2016-11-3 10:58 編輯

111111
82#
發(fā)表于 2016-11-3 10:09 | 只看該作者 | 來(lái)自湖南
本帖最后由 cashwl 于 2016-11-3 11:07 編輯

22222
83#
發(fā)表于 2016-11-3 10:28 | 只看該作者 | 來(lái)自湖南
連接iTV的網(wǎng)線,斷開(kāi)wifi時(shí),
root@zx296702_asic:/ # ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1452 qdisc pfifo_fast state UP qlen 1000
    link/ether 90:d8:f3:67:96:4e brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.12/24 brd 192.168.1.255 scope global eth0
    inet6 fe80::92d8:f3ff:fe67:964e/64 scope link
       valid_lft forever preferred_lft forever
3: tunl0: <NOARP> mtu 1480 qdisc noop state DOWN
    link/ipip 0.0.0.0 brd 0.0.0.0
4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN
    link/sit 0.0.0.0 brd 0.0.0.0
5: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether 3c:33:00:45:d6:78 brd ff:ff:ff:ff:ff:ff
6: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1452 qdisc mq state DORMANT qlen 1000
    link/ether 3e:33:00:45:d6:78 brd ff:ff:ff:ff:ff:ff
7: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1452 qdisc pfifo_fast state UNKNOWN qlen 3
    link/ppp
    inet 10.126.58.241 peer 10.126.32.1/32 scope global ppp0
root@zx296702_asic:/ # ip route
default via 10.126.32.1 dev ppp0
10.126.32.1 dev ppp0  scope link
10.126.32.1 dev ppp0  proto kernel  scope link  src 10.126.58.241
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.12
root@zx296702_asic:/ # getprop | grep dhcp
[dhcp.eth0.dns1]: [0.0.0.0]
[dhcp.eth0.gateway]: [10.126.32.1]
[dhcp.eth0.ipaddress]: [10.126.58.241]
[dhcp.eth0.mask]: [255.255.255.255]
[dhcp.wlan0.dns1]: [59.51.78.210]
[dhcp.wlan0.dns2]: [222.246.129.80]
[dhcp.wlan0.gateway]: [192.168.1.1]
[dhcp.wlan0.ipaddress]: [192.168.1.103]
[dhcp.wlan0.leasetime]: [7200]
[dhcp.wlan0.mask]: [255.255.255.0]
[dhcp.wlan0.pid]: [2474]
[dhcp.wlan0.result]: [failed]
[dhcp.wlan0.server]: [192.168.1.1]
[dhcp.wlan0.vendorInfo]: []
[init.svc.zte_dhcp]: [stopped]
root@zx296702_asic:/ # getprop | grep eth
[dhcp.eth0.dns1]: [0.0.0.0]
[dhcp.eth0.gateway]: [10.126.32.1]
[dhcp.eth0.ipaddress]: [10.126.58.241]
[dhcp.eth0.mask]: [255.255.255.255]
[init.svc.net-eth0]: [stopped]
[net.eth.nettype]: [0]
[net.zte.eth.netstate]: [CONNECTED]
[sys.AccessMethod]: [PPPOE]
root@zx296702_asic:/ # getprop | grep ppp
[init.svc.zte_pppoe]: [stopped]
[net.pppoe.errocode]: []
84#
發(fā)表于 2016-11-3 10:47 | 只看該作者 | 來(lái)自湖南
本帖最后由 cashwl 于 2016-11-3 10:52 編輯

我手動(dòng)關(guān)閉有線  開(kāi)WIFI 的時(shí)候 提示   

[ 1654.391000] RTL871X: rtw_set_802_11_connect(wlan0)  fw_state=0x00000008
[ 1654.461000] RTL871X: start auth
[ 1654.466000] RTL871X: auth success, start assoc
[ 1654.470000] RTL871X: assoc success
[ 1654.906000] RTL871X: recv eapol packet
[ 1654.911000] RTL871X: send eapol packet
[ 1655.917000] RTL871X: recv eapol packet
[ 1655.918000] RTL871X: send eapol packet
[ 1655.920000] RTL871X: set pairwise key camid:4, addr:e0:05:c5:ca:28:9a, kid:0, type:AES
[ 1655.957000] RTL871X: set group key camid:5, addr:e0:05:c5:ca:28:9a, kid:2, type:AES

手動(dòng)關(guān)閉WIFI  連接有線 提示

[ 1963.789000] RTL871X: module exit start
[ 1963.800000] RTL871X: rtw_ndev_uninit(wlan0)
[ 1963.837000] RTL871X: rtw_ndev_uninit(p2p0)
[ 1963.860000] RTL871X: rtw_cmd_thread: DriverStopped(1) SurpriseRemoved(0) break at line 478
[ 1963.869000] RTL871X: rtw_dev_unload: driver not in IPS
[ 1964.096000] RTL871X: module exit success




85#
發(fā)表于 2016-11-3 10:58 | 只看該作者 | 來(lái)自湖南
連接iTV的網(wǎng)線,同時(shí)連接wifi

root@zx296702_asic:/ # ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1452 qdisc pfifo_fast state UP qlen 1000
    link/ether 90:d8:f3:67:96:4e brd ff:ff:ff:ff:ff:ff
    inet6 fe80::92d8:f3ff:fe67:964e/64 scope link
       valid_lft forever preferred_lft forever
3: tunl0: <NOARP> mtu 1480 qdisc noop state DOWN
    link/ipip 0.0.0.0 brd 0.0.0.0
4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN
    link/sit 0.0.0.0 brd 0.0.0.0
11: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 3c:33:00:45:d6:78 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.103/24 brd 255.255.255.255 scope global wlan0
    inet6 fe80::3e33:ff:fe45:d678/64 scope link
       valid_lft forever preferred_lft forever
12: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1452 qdisc mq state DORMANT qlen 1000
    link/ether 3e:33:00:45:d6:78 brd ff:ff:ff:ff:ff:ff
root@zx296702_asic:/ #  ip route]
Object "route]" is unknown, try "ip help".
1|root@zx296702_asic:/ #  ip route
default via 192.168.1.1 dev wlan0
192.168.1.0/24 dev wlan0  scope link
192.168.1.0/24 dev wlan0  proto kernel  scope link  src 192.168.1.103
192.168.1.1 dev wlan0  scope link
root@zx296702_asic:/ # getprop | grep dhcp
[dhcp.eth0.dns1]: [0.0.0.0]
[dhcp.eth0.gateway]: [10.126.32.1]
[dhcp.eth0.ipaddress]: [10.126.34.147]
[dhcp.eth0.mask]: [255.255.255.255]
[dhcp.wlan0.dns1]: [59.51.78.210]
[dhcp.wlan0.dns2]: [222.246.129.80]
[dhcp.wlan0.gateway]: [192.168.1.1]
[dhcp.wlan0.ipaddress]: [192.168.1.103]
[dhcp.wlan0.leasetime]: [7200]
[dhcp.wlan0.mask]: [255.255.255.0]
[dhcp.wlan0.pid]: [8435]
[dhcp.wlan0.result]: [ok]
[dhcp.wlan0.server]: [192.168.1.1]
[dhcp.wlan0.vendorInfo]: []
[init.svc.zte_dhcp]: [running]
root@zx296702_asic:/ # getprop | grep eth
[dhcp.eth0.dns1]: [0.0.0.0]
[dhcp.eth0.gateway]: [10.126.32.1]
[dhcp.eth0.ipaddress]: [10.126.34.147]
[dhcp.eth0.mask]: [255.255.255.255]
[init.svc.net-eth0]: [stopped]
[net.eth.nettype]: [0]
[net.zte.eth.netstate]: [DISCONNECTED]
[sys.AccessMethod]: [PPPOE]
root@zx296702_asic:/ # getprop | grep ppp
[init.svc.zte_pppoe]: [stopped]
[net.pppoe.errocode]: []
86#
發(fā)表于 2016-11-3 11:01 | 只看該作者 | 來(lái)自湖南
我想請(qǐng)教下樓主  另外的教程是 編輯 vi /system/bin/netchang.sh    您的是 vi /system/bin/netchange.sh  這個(gè)沒(méi)影響吧?
87#
發(fā)表于 2016-11-3 11:17 | 只看該作者 | 來(lái)自湖南
按樓主教程再試了一次  有一個(gè)錯(cuò)誤

root@zx296702_asic:/ # mount -o rw,remount /system
root@zx296702_asic:/ # vi /system/bin/netchange.sh
root@zx296702_asic:/ # chmod 0755 /system/bin/netchange.sh
sh &" >> /system/bin/init.zte.post_boot.sh                                    <
root@zx296702_asic:/ # /system/bin/netchange.sh           
Package com.ztestb.upgrade new blocked state: true
/system/bin/netchange.sh[185]: syntax error: 'while' unmatched      (這里好像提示錯(cuò)誤)
1|root@zx296702_asic:/ # /system/bin/netchange.sh
Package com.ztestb.upgrade new blocked state: true
/system/bin/netchange.sh[185]: syntax error: 'while' unmatched
88#
發(fā)表于 2016-11-3 16:08 | 只看該作者 | 來(lái)自湖南
重啟之后  手動(dòng)執(zhí)行   /system/bin/netchange.sh   與47樓的兄弟情況有些像   結(jié)果是導(dǎo)致WIFI 連不上  有線也連不上

root@zx296702_asic:/ # /system/bin/netchange.sh
Package com.ztestb.upgrade new blocked state: true
=itv stopped...
RTNETLINK answers: No such process
RTNETLINK answers: File exists
200 0 Resolver command succeeded
200 0 Resolver command succeeded
200 0 Resolver command succeeded
=switched to wlan0...
=gateway:192.168.1.1 dns:59.51.78.210
[  410.462000] UMP<2>: New session opened
[  494.113000] UMP<2>: New session opened
[  564.493000] UMP<2>: New session opened

89#
 樓主| 發(fā)表于 2016-11-3 19:11 | 只看該作者 | 來(lái)自四川
已加QQ,另外,請(qǐng)?jiān)賵?zhí)行 getprop | grep dns 看看結(jié)果
90#
發(fā)表于 2016-11-6 22:54 | 只看該作者 | 來(lái)自安徽
弄完后點(diǎn)ITV連接不上,出現(xiàn)錯(cuò)誤代碼20141.我的盒子是電信B860A1.1,PPPOE方式

本版積分規(guī)則

Archiver|新帖|標(biāo)簽|軟件|Sitemap|ZNDS智能電視網(wǎng) ( 蘇ICP備2023012627號(hào) )

網(wǎng)絡(luò)信息服務(wù)信用承諾書(shū) | 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證:蘇B2-20221768 丨 蘇公網(wǎng)安備 32011402011373號(hào)

GMT+8, 2024-11-12 07:21 , Processed in 0.051587 second(s), 8 queries , Redis On.

Powered by Discuz!

監(jiān)督舉報(bào):report#znds.com (請(qǐng)將#替換為@)

© 2007-2024 ZNDS.Com

快速回復(fù) 返回頂部 返回列表