[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/Script/scripts/auto_dial.sh b/ap/app/Script/scripts/auto_dial.sh
new file mode 100644
index 0000000..f6508cc
--- /dev/null
+++ b/ap/app/Script/scripts/auto_dial.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+path_sh=`nv get path_sh`
+. $path_sh/global.sh
+
+echo "Info: auto_dial.sh $1 start" >> $test_log
+
+wanlan_select()
+{
+ auto_wan_if=`nv get $1`
+ ifconfig $auto_wan_if down 2>>$test_log
+ if [ $? -ne 0 ];then
+ echo "Error: ifconfig $auto_wan_if down" >> $test_log
+ fi
+ ifconfig $auto_wan_if up 2>>$test_log
+ if [ $? -ne 0 ];then
+ echo "Error: ifconfig $auto_wan_if up" >> $test_log
+ fi
+ (eth_auto_connect || echo "Error: eth_auto_connect failed." >> $test_log) &
+}
+
+
+wanlan_select $1