Created
March 28, 2013 12:37
-
-
Save wcharczuk/5262800 to your computer and use it in GitHub Desktop.
Programatically set your mac address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Setting MAC Address ..." | |
networksetup -setairportpower en1 on; | |
/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z | |
/sbin/ifconfig en1 ether YOUR_MAC_ADDRESS_HERE | |
networksetup -detectnewhardware | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment