add connect script
This commit is contained in:
parent
215320b632
commit
b2c8833a7f
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
"c"*)
|
||||||
|
wpa_supplicant -iwlp3s0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B
|
||||||
|
dhcpcd wlp3s0
|
||||||
|
tor & disown
|
||||||
|
"d"*)
|
||||||
|
killall -15 wpa_supplicant dhcpcd tor
|
||||||
|
"r"*)
|
||||||
|
sh $0 d
|
||||||
|
sh $0 c
|
||||||
|
*)
|
||||||
|
printf "\
|
||||||
|
simple wrapper for connecting to a network
|
||||||
|
${0} restart to restart wifi
|
||||||
|
${0} disconnect to disconnect
|
||||||
|
${0} connect to connect to network
|
||||||
|
"
|
||||||
|
easc
|
||||||
|
exit 0
|
Loading…
Reference in New Issue