scripts/qemustart: more compact rand_mac()
[openwrt/staging/stintel.git] / scripts / qemustart
index 5af93b9aedb3133b7b640c483b31cff4650b763a..5bb8ca5f3a353b6b45b23bc16decc510e765765f 100755 (executable)
@@ -113,7 +113,7 @@ EOF
 }
 
 rand_mac() {
-       hexdump -n 3 -e '"52:54:00:" 2/1 "%02x:" 1/1 "%02x"' /dev/urandom
+       hexdump -n 3 -e '"52:54:00" 3/1 ":%02x"' /dev/urandom
 }
 
 parse_args() {