lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |
| 3 | path_sh=`nv get path_sh` |
| 4 | . $path_sh/global.sh |
| 5 | |
| 6 | echo "Info: auto_dial.sh $1 start" >> $test_log |
| 7 | |
| 8 | wanlan_select() |
| 9 | { |
| 10 | auto_wan_if=`nv get $1` |
| 11 | ifconfig $auto_wan_if down 2>>$test_log |
| 12 | if [ $? -ne 0 ];then |
| 13 | echo "Error: ifconfig $auto_wan_if down" >> $test_log |
| 14 | fi |
| 15 | ifconfig $auto_wan_if up 2>>$test_log |
| 16 | if [ $? -ne 0 ];then |
| 17 | echo "Error: ifconfig $auto_wan_if up" >> $test_log |
| 18 | fi |
| 19 | (eth_auto_connect || echo "Error: eth_auto_connect failed." >> $test_log) & |
| 20 | } |
| 21 | |
| 22 | |
| 23 | wanlan_select $1 |