From 6cc75335e60f78a22ba35680da7a66f3cbc4e94a Mon Sep 17 00:00:00 2001 From: randomuser Date: Tue, 11 May 2021 22:02:41 -0500 Subject: [PATCH] add connect toggle --- scripts/connect | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/connect b/scripts/connect index 4ffbee4..24a719b 100755 --- a/scripts/connect +++ b/scripts/connect @@ -13,9 +13,14 @@ case $1 in sh $0 d sh $0 c ;; + "t"*) + [ $(ps aux | grep wpa_supplicant | wc -l) -eq 2 ] && sh $0 d && exit + sh $0 c + ;; *) printf "\ simple wrapper for connecting to a network +${0} toggle to toggle wifi connection ${0} restart to restart wifi ${0} disconnect to disconnect ${0} connect to connect to network