From 0aa02524a3414ea7cccf60f2b32aaa07e896e9fa Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Mon, 23 Sep 2019 17:48:53 -0700 Subject: [PATCH] interaface var actually used nwo kek --- wifi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wifi b/wifi index 4a5bb95..fbb4f89 100755 --- a/wifi +++ b/wifi @@ -47,11 +47,13 @@ __kill_old() { __connect_config() { if [ -z "$debug_kill" ] then - if [ ! -f "$1" ]; then echo Config not found\ - exit 0;fi + if [ ! -f "$1" ]; then + echo Config not found + exit 0 + fi __kill_old - wpa_supplicant -B -i wlp1s0 -c "$1" - dhclient wlp1s0 + wpa_supplicant -B -i $iface -c "$1" + dhclient $iface else echo Not connecting to anything fi