projects
/
openwrt
/
staging
/
jow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b63595
)
scripts/qemustart: more compact rand_mac()
author
Yousong Zhou
<yszhou4tech@gmail.com>
Mon, 17 Dec 2018 04:15:32 +0000
(
04:15
+0000)
committer
Yousong 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
patch
|
blob
|
history
diff --git
a/scripts/qemustart
b/scripts/qemustart
index 5af93b9aedb3133b7b640c483b31cff4650b763a..5bb8ca5f3a353b6b45b23bc16decc510e765765f 100755
(executable)
--- 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() {