diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-10-09 14:59:08 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-10-09 14:59:08 +0200 |
commit | e10d2fda7d2513578a656719358451521e2476c1 (patch) | |
tree | 12cd2fb55eb359bf5ebf521c05628797449c3d77 | |
parent | Modernize scripts. (diff) | |
download | wifi-monitoring-scripts-e10d2fda7d2513578a656719358451521e2476c1.tar.xz wifi-monitoring-scripts-e10d2fda7d2513578a656719358451521e2476c1.zip |
-rwxr-xr-x | mac.sh | 6 | ||||
-rwxr-xr-x | reset-module.sh | 1 |
2 files changed, 2 insertions, 5 deletions
@@ -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 diff --git a/reset-module.sh b/reset-module.sh index 8f114be..a9e0220 100755 --- a/reset-module.sh +++ b/reset-module.sh @@ -11,6 +11,7 @@ ifconfig wlan0 down rmmod iwldvm rmmod iwlwifi modprobe iwlwifi +sleep 1 iwconfig wlan0 power on ifconfig wlan0 up |