From 10633cfe7f82bf92ff15fe575469667853c6084c Mon Sep 17 00:00:00 2001 From: pks Date: Sat, 14 Nov 2020 12:03:39 +0100 Subject: net-profile: change MAC if not at home --- net-profile | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3