bin/.local/bin/changemacaddr #!/bin/sh #id=`printf '%02x' $((0x$(od /dev/urandom -N1 -t x1 -An | cut -c 2-) & 0xFE | 0x02)); od /dev/urandom -N5 -t x1 -An | sed 's/ /:/g'` id=$(openssl rand -hex 6 | sed 's/\(..\)/:/g; s/:$//') ip link set dev interface address "$id"