SHARE
TWEET

Untitled

a guest Jun 20th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #crontab
  2. # disable/enable wireles interface (@wifi-iface)/(client)
  3.  
  4. # this is to disable (at 21:10 everyday)
  5. 10 21 * * * uci set wireless.@wifi-iface[3].disabled='1' ; wifi
  6. # and this to enable (...)
  7. 13 21 * * * uci delete wireless.@wifi-iface[3].disabled ; wifi
  8. # =================================
  9. # disable/enable ap (...)
  10. 10 21 * * * uci set wireless.@wifi-iface[1].disabled='1'; wifi
  11. 13 21 * * * uci set wireless.@wifi-iface[1].disabled='0'; wifi
  12.  
  13. # careful; if you enable 2+ ifaces at the same time = problems
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