From 796f6c752e36e6fa5a94babffeb23f685bd7a028 Mon Sep 17 00:00:00 2001 From: pks Date: Tue, 23 Feb 2021 15:07:00 +0100 Subject: net-profile: fix --- net-profile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net-profile') 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 -- cgit v1.2.3