interaface var actually used nwo kek
This commit is contained in:
parent
f63bf2a44d
commit
0aa02524a3
10
wifi
10
wifi
@ -47,11 +47,13 @@ __kill_old() {
|
|||||||
__connect_config() {
|
__connect_config() {
|
||||||
if [ -z "$debug_kill" ]
|
if [ -z "$debug_kill" ]
|
||||||
then
|
then
|
||||||
if [ ! -f "$1" ]; then echo Config not found\
|
if [ ! -f "$1" ]; then
|
||||||
exit 0;fi
|
echo Config not found
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
__kill_old
|
__kill_old
|
||||||
wpa_supplicant -B -i wlp1s0 -c "$1"
|
wpa_supplicant -B -i $iface -c "$1"
|
||||||
dhclient wlp1s0
|
dhclient $iface
|
||||||
else
|
else
|
||||||
echo Not connecting to anything
|
echo Not connecting to anything
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user