aboutsummaryrefslogtreecommitdiff
path: root/genmacaddr
blob: 093e6169a0fc5210ec6a471740040526c09de688 (plain)
1
2
3
4
5
#!/bin/bash

# Generate a random mac address for the qemu nic.
#
printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))