Skip to content

Commit 6874d7e

Browse files
committed
update random-mac script + citation
1 parent 12b03cd commit 6874d7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

random-mac.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
22
#MAC ADDRESS RANDOMIZER
3+
#http://www.commandlinefu.com/commands/view/8471/generat-a-random-mac-address
34

4-
2>/dev/null dd if=/dev/urandom bs=1 count=6 | od -t x1 | sed '2d;s/^0\+ //;s/ /:/g'
5+
(date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'

0 commit comments

Comments
 (0)