From: Yousong Zhou Date: Mon, 17 Dec 2018 04:15:32 +0000 (+0000) Subject: scripts/qemustart: more compact rand_mac() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3cc31ea8d385e074909edf7a9173860027d068f0;p=openwrt%2Fstaging%2Flynxis.git scripts/qemustart: more compact rand_mac() Signed-off-by: Yousong Zhou --- 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() {