[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/ppp_updown.sh b/ap/app/Script/scripts/ppp_updown.sh
index c9662d8..0081d4f 100755
--- a/ap/app/Script/scripts/ppp_updown.sh
+++ b/ap/app/Script/scripts/ppp_updown.sh
@@ -47,7 +47,9 @@
ps_ip=$ps_ip_ab"."$ps_ip_c1"."$ps_ip_d
- ifconfig $ps_if $ps_ip netmask 255.255.255.0 up
+ 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