add connect toggle

This commit is contained in:
randomuser 2021-05-11 22:02:41 -05:00
parent aba8a74910
commit 6cc75335e6
1 changed files with 5 additions and 0 deletions

View File

@ -13,9 +13,14 @@ case $1 in
sh $0 d sh $0 d
sh $0 c sh $0 c
;; ;;
"t"*)
[ $(ps aux | grep wpa_supplicant | wc -l) -eq 2 ] && sh $0 d && exit
sh $0 c
;;
*) *)
printf "\ printf "\
simple wrapper for connecting to a network simple wrapper for connecting to a network
${0} toggle to toggle wifi connection
${0} restart to restart wifi ${0} restart to restart wifi
${0} disconnect to disconnect ${0} disconnect to disconnect
${0} connect to connect to network ${0} connect to connect to network