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.

16 lines
296 B

function wifi {
case "${1^^}" in
"OFF")
printf "Disabling wireless interface...\n"
/usr/bin/rfkill block 0
;;
"ON")
printf "Enabling wireless interface...\n"
/usr/bin/rfkill unblock 0
;;
*)
printf "\nOption not recognised. Try using \`on' or \`off'.\n"
;;
esac
}