aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qemustart
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2018-12-17 04:15:32 +0000
committerYousong Zhou <yszhou4tech@gmail.com>2018-12-17 04:16:34 +0000
commit3cc31ea8d385e074909edf7a9173860027d068f0 (patch)
tree7f3c067d2070516e9eb7056a86b7e49a312eab5e /scripts/qemustart
parent6b63595fec8170d0193c093fa68bd46dd6bf475f (diff)
downloadupstream-3cc31ea8d385e074909edf7a9173860027d068f0.tar.gz
upstream-3cc31ea8d385e074909edf7a9173860027d068f0.tar.bz2
upstream-3cc31ea8d385e074909edf7a9173860027d068f0.zip
scripts/qemustart: more compact rand_mac()
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'scripts/qemustart')
-rwxr-xr-xscripts/qemustart2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qemustart b/scripts/qemustart
index 5af93b9aed..5bb8ca5f3a 100755
--- a/scripts/qemustart
+++ b/scripts/qemustart
@@ -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() {