Config files to make everyday life easier...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wifi.sh 296B

12345678910111213141516
  1. function wifi {
  2. case "${1^^}" in
  3. "OFF")
  4. printf "Disabling wireless interface...\n"
  5. /usr/bin/rfkill block 0
  6. ;;
  7. "ON")
  8. printf "Enabling wireless interface...\n"
  9. /usr/bin/rfkill unblock 0
  10. ;;
  11. *)
  12. printf "\nOption not recognised. Try using \`on' or \`off'.\n"
  13. ;;
  14. esac
  15. }