Guest User

Untitled

a guest
Nov 27th, 2010
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/sh
  2. #
  3. # Wlan on-off script
  4. #
  5.  
  6. onoff=$(rfkill list wlan | grep -c no)
  7.  
  8. if [ $onoff -ge 2 -a $onoff -le 4 ]
  9.     then
  10.     rfkill block wlan
  11.     else
  12.     rfkill unblock wlan
  13.     fi
Advertisement
Add Comment
Please, Sign In to add comment