aboutsummaryrefslogtreecommitdiff
path: root/genmacaddr
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-23 20:08:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-23 20:08:19 +0200
commit603657a166bff4a16606a2575364446171466af6 (patch)
treead31cfff7432d5846d8a40505c1943a6fb1d1718 /genmacaddr
parent6b3c6b23a16869012c934c0df6244885b22e0aa1 (diff)
Initial implementation of network configuration
Diffstat (limited to 'genmacaddr')
-rwxr-xr-xgenmacaddr5
1 files changed, 5 insertions, 0 deletions
diff --git a/genmacaddr b/genmacaddr
new file mode 100755
index 0000000..093e616
--- /dev/null
+++ b/genmacaddr
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# Generate a random mac address for the qemu nic.
+#
+printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))