diff options
author | Patrick Simianer <p@simianer.de> | 2015-08-25 18:44:11 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-08-25 18:44:11 +0200 |
commit | ef1e3f02fcc5855493b878f0df80be4b44f12141 (patch) | |
tree | 169f68956ebb99bb1115a34a1a2916f058217b4c /net_profile | |
parent | f5a4fb3905c45a4113c54542c6629ded9b74e339 (diff) |
net_profile: wlan device
Diffstat (limited to 'net_profile')
-rwxr-xr-x | net_profile | 4 |
1 files changed, 3 insertions, 1 deletions
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 |