[Feature][task-view-306]merge P56U08(patch6) version
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I8e809511ac30c97228dd110c304b4a08f4af36d7
diff --git a/ap/app/Script/scripts/psext_updown.sh b/ap/app/Script/scripts/psext_updown.sh
index 9f74350..1117d1c 100755
--- a/ap/app/Script/scripts/psext_updown.sh
+++ b/ap/app/Script/scripts/psext_updown.sh
@@ -277,7 +277,9 @@
get_netmask_btrunk $pdp_ip
fi
- ifconfig $ps_if $ps_ip netmask 255.255.255.0 up 2>>$test_log
+ ifconfig $ps_if $ps_ip up 2>>$test_log
+ wan_nm=`nv get static_wan_netmask`
+ ifconfig $ps_if netmask $wan_nm 2>>$test_log
if [ $? -ne 0 ];then
echo "Error: ifconfig $ps_if $ps_ip up failed." >> $test_log
fi
@@ -326,7 +328,11 @@
br="br"$c_id
brctl addbr $br
brctl setfd $br 0.1
- ifconfig $br up 2>>$test_log
+ if [ "$eth_if" != "zvnet"$c_id ]; then
+ ifconfig $br up 2>>$test_log
+ else
+ ifconfig $br -arp up 2>>$test_log
+ fi
if [ $? -ne 0 ];then
echo "Error: ifconfig $br up failed." >> $test_log
fi
@@ -447,7 +453,11 @@
brctl addbr $ext_br
brctl setfd $ext_br 0.1
brctl addif $ext_br $eth_if
- ifconfig $ext_br up
+ if [ "$eth_if" != "zvnet"$c_id ]; then
+ ifconfig $ext_br up 2>>$test_log
+ else
+ ifconfig $ext_br -arp up 2>>$test_log
+ fi
get_ipaddr
dhcp_set
route_set