summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnet-profile3
1 files changed, 3 insertions, 0 deletions
diff --git a/net-profile b/net-profile
index e97f01b..2308fd5 100755
--- a/net-profile
+++ b/net-profile
@@ -7,6 +7,9 @@ fi
setup_wifi()
{
+ if [[ $1 != "home" ]]; then
+ macchanger -r wlan0
+ fi
sudo wpa_supplicant -i $DEV -c ~/.net_profiles/$1.conf &>/tmp/wpa_supplicant.log &
sudo /etc/init.d/dhcpcd start
sleep 30