Created
March 20, 2020 07:01
-
-
Save Ricky-Wilson/c7961a2b0099d0d6c05c4dc7073fd5bf to your computer and use it in GitHub Desktop.
Generate a random MAC address
This file contains hidden or 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/bash | |
MAC=`(date; cat /proc/interrupts) | \ | |
md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'` | |
echo "$MAC" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment