[Feature][ZXW-130]merge P50U02 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: I4f29ec5bb7c59385f23738d2b7ca84e67c100f69
diff --git a/ap/app/Script/scripts/wan_ipv4.sh b/ap/app/Script/scripts/wan_ipv4.sh
index e4c5a40..e985e7b 100755
--- a/ap/app/Script/scripts/wan_ipv4.sh
+++ b/ap/app/Script/scripts/wan_ipv4.sh
@@ -40,7 +40,14 @@
msg_zte_router()
{
if [ "-$c_id" == "-0" -o "-$c_id" == "-$def_cid" ]; then
- (router_msg_proxy ipv4 wan_ipv4.sh >> $test_log 2>&1 || echo "Error: router_msg_proxy ipv4 wan_ipv4.sh failed." >> $test_log) &
+ (router_msg_proxy ipv4 $c_id >> $test_log 2>&1 || echo "Error: router_msg_proxy ipv4 wan_ipv4.sh up failed." >> $test_log) &
+ fi
+}
+
+msg_zte_router_down()
+{
+ if [ "-$c_id" == "-0" -o "-$c_id" == "-$def_cid" ]; then
+ (router_msg_proxy ipv4 0 >> $test_log 2>&1 || echo "Error: router_msg_proxy ipv4 wan_ipv4.sh down failed." >> $test_log) &
fi
}
@@ -279,7 +286,7 @@
nv set default_cid=""
fi
del_default_wan $wan_if
- msg_zte_router
+ msg_zte_router_down
}