summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2020-11-14 12:03:39 +0100
committerpks <pks@pks.rocks>2020-11-14 12:03:39 +0100
commit10633cfe7f82bf92ff15fe575469667853c6084c (patch)
tree338aa16840bcab523c5d1f64175cd83352d9262d
parenta9e6dadf3a9ade7204e803e14dd7c7bac2aecef9 (diff)
net-profile: change MAC if not at home
-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