summaryrefslogtreecommitdiff
path: root/net_profile
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-08-25 18:44:11 +0200
committerPatrick Simianer <p@simianer.de>2015-08-25 18:44:11 +0200
commitef1e3f02fcc5855493b878f0df80be4b44f12141 (patch)
tree169f68956ebb99bb1115a34a1a2916f058217b4c /net_profile
parentf5a4fb3905c45a4113c54542c6629ded9b74e339 (diff)
net_profile: wlan device
Diffstat (limited to 'net_profile')
-rwxr-xr-xnet_profile4
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