Created
August 11, 2011 10:34
-
-
Save kalabiyau/1139348 to your computer and use it in GitHub Desktop.
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/ash | |
MAC=`(date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'` | |
echo "00:${MAC}" | |
nvram set def_hwaddr="00:${MAC}" | |
nvram set wan_hwaddr="00:${MAC}" | |
nvram set lan_hwaddr="00:${MAC}" | |
nvram set wl0_hwaddr="00:${MAC}" | |
nvram set wl1_hwaddr="00:${MAC}" | |
stopservice wan | |
startservice wan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment