Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: mb0 on February 03, 2013, 08:59:25 PM
-
I have a headless system that is essentially useless without wifi, but with the default script it rarely connects without manually re-running ('no lease, failing'), which would require a reboot.
How can i make the wifi.sh script indefinitely attempt to connect to wifi, or at least a large number of tries (eg 99) before giving up?
-
Maybe you can call the wifi script in a loop using something like:
http://forum.tinycorelinux.net/index.php/topic,14731.msg83695.html#msg83695
Replace the echo line with a call to wifi.sh.
-
Thanks rich, that works if i run bootlocal.sh manually, but it doesn't seem to automatically on boot :?
How do i get the script to echo into the console for debugging? or should it be doing that anyway??
If i want to get the network to automatically try to reconnect if it loses connection, what is the best way to handle that.. just make the loop never end??
-
Hi mb0
If i want to get the network to automatically try to reconnect if it loses connection, what is the best way to handle that.. just make the loop never end??
You might consider monitoring /sys/class/net/wlan0/carrier to check if you are connected.