a guest Jan 21st, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # copy to: /etc/cron.hourly/check-wlan
- # test with: sudo run-parts --test /etc/cron.hourly
- if ifconfig wlan0 | grep "inet addr:" ; then
- logger "wifi ok"
- logger "Network down! Attempting reconnection."
- ifup --force wlan0
RAW Paste Data