From ef1e3f02fcc5855493b878f0df80be4b44f12141 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 25 Aug 2015 18:44:11 +0200 Subject: net_profile: wlan device --- net_profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'net_profile') diff --git a/net_profile b/net_profile index 8acea40..57c278a 100755 --- a/net_profile +++ b/net_profile @@ -1,8 +1,10 @@ #!/bin/sh +DEV=`ls -1 /sys/class/net | grep wlan` + setup_wifi() { - sudo wpa_supplicant -D wext -i wlan0 -c ~/.net_profiles/$1.conf &>/tmp/wpa_supplicant.log & + sudo wpa_supplicant -D wext -i $DEV -c ~/.net_profiles/$1.conf &>/tmp/wpa_supplicant.log & sudo /etc/init.d/dhcpcd start sleep 30 sudo rc-config start ntp-client -- cgit v1.2.3