scripts/qemustart: more compact rand_mac()
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 17 Dec 2018 04:15:32 +0000 (04:15 +0000)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 17 Dec 2018 04:16:34 +0000 (04:16 +0000)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
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() {