summaryrefslogtreecommitdiffstats
path: root/mac.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2013-10-09 14:59:08 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2013-10-09 14:59:08 +0200
commite10d2fda7d2513578a656719358451521e2476c1 (patch)
tree12cd2fb55eb359bf5ebf521c05628797449c3d77 /mac.sh
parentModernize scripts. (diff)
downloadwifi-monitoring-scripts-master.tar.xz
wifi-monitoring-scripts-master.zip
Tweeks.HEADmaster
Diffstat (limited to 'mac.sh')
-rwxr-xr-xmac.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/mac.sh b/mac.sh
index 2c55a50..cac984b 100755
--- a/mac.sh
+++ b/mac.sh
@@ -2,16 +2,12 @@ if [[ $UID != 0 ]]; then
echo "You must be root."
exit -1
fi
-if [[ $# -ne 1 ]]; then
- echo "You must provide a mac address you'd like to change to."
- exit -1
-fi
/etc/init.d/dhcpcd stop
/etc/init.d/wpa_supplicant stop
ifconfig wlan0 down
-macchanger -m $1 wlan0
+macchanger -r wlan0
ifconfig wlan0 up
/etc/init.d/dhcpcd start