SHARE
TWEET

Untitled

a guest Jan 21st, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # copy to: /etc/cron.hourly/check-wlan
  4. # test with: sudo run-parts --test /etc/cron.hourly
  5.  
  6. if ifconfig wlan0 | grep "inet addr:" ; then
  7.         logger "wifi ok"
  8.         exit
  9. else
  10.         logger "Network down! Attempting reconnection."
  11.         ifup --force wlan0
  12. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top