Skip to content

Instantly share code, notes, and snippets.

@wcharczuk
Created March 28, 2013 12:37

Revisions

  1. Will Charczuk created this gist Mar 28, 2013.
    8 changes: 8 additions & 0 deletions setmacaddr.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/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!"