diff options
Diffstat (limited to 'net-profile')
-rwxr-xr-x | net-profile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net-profile b/net-profile index 2308fd5..a5beaa5 100755 --- a/net-profile +++ b/net-profile @@ -1,14 +1,14 @@ #!/bin/sh -DEV=`ls -1 /sys/class/net | grep wlan` +DEV=`ls -1 /sys/class/net | grep wifi` if [[ $DEV == "" ]]; then - DEV=`ls -1 /sys/class/net | grep wlp` + DEV=`ls -1 /sys/class/net | grep wlan` fi setup_wifi() { if [[ $1 != "home" ]]; then - macchanger -r wlan0 + sudo macchanger -e $DEV fi sudo wpa_supplicant -i $DEV -c ~/.net_profiles/$1.conf &>/tmp/wpa_supplicant.log & sudo /etc/init.d/dhcpcd start |