blob: f6508cc1f23ed70c47fa213f73aeff0ab63e6ec3 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#!/bin/sh
2
3path_sh=`nv get path_sh`
4. $path_sh/global.sh
5
6echo "Info: auto_dial.sh $1 start" >> $test_log
7
8wanlan_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
23wanlan_select $1