Skip to content

Instantly share code, notes, and snippets.

@kalabiyau
Created August 11, 2011 10:34
Show Gist options
  • Save kalabiyau/1139348 to your computer and use it in GitHub Desktop.
Save kalabiyau/1139348 to your computer and use it in GitHub Desktop.
#!/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