[Feature][T106BUG-345]modify eth0 up time
Only Configure:No
Affected branch:master
Affected module:eth0
Is it affected on both ZXIC and MTK:only ZXIC
Self-test:Yes
Doc Update:No
Change-Id: I74f9b734c8780b252dcbd45d332c90a0e84830d6
diff --git a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/lan.sh b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/lan.sh
index 1faf70a..4e6c011 100755
--- a/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/lan.sh
+++ b/cap/zx297520v3/zxic_code/zxic_source/zxic_app_open/platform/Script/scripts/lan.sh
@@ -33,7 +33,13 @@
#´ò¿ªÍøÇŵØÖ·¸Ä±ä֪ͨµÄ¿ª¹Ø
echo 1 > /proc/sys/net/ipv4/conf/$br_name/arp_notify
-
+
+ prj=`cat /sys/gmac/gmacconfig/type`
+ if [ "$prj" == "cpe" ]; then
+ ifconfig eth0 up 2>>$test_log
+ brctl addif $br_name eth0 2>>$test_log
+ fi
+
br_node=`nv get br_node_cap`
#analysis br_node ex: usb0+wifi0+¡
@@ -108,11 +114,7 @@
ip route add default via $ap_ip
ip -6 route add default via $ap_ipv6 dev $lan_if_cap
echo "nameserver $ap_ip" >> /etc/resolv.conf
- prj=`cat /sys/gmac/gmacconfig/type`
- if [ "$prj" == "cpe" ]; then
- ifconfig eth0 up 2>>$test_log
- brctl addif $br_name eth0 2>>$test_log
- fi
+
}
main