소스 검색

scripts/qemustart: more compact rand_mac()

Signed-off-by: Yousong Zhou <[email protected]>
Yousong Zhou 6 년 전
부모
커밋
3cc31ea8d3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scripts/qemustart

+ 1 - 1
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() {