diff options
Diffstat (limited to 'mac.sh')
-rwxr-xr-x | mac.sh | 6 |
1 files changed, 1 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 |