From c4f207e85a33bc6cee2d4cefb42a62ed77b08961 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Sat, 11 Dec 2010 21:24:16 -0500 Subject: fix output of demo command, and accept default config for MAC address --- kvm-creator | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kvm-creator') diff --git a/kvm-creator b/kvm-creator index 69a56d5..5b5771a 100755 --- a/kvm-creator +++ b/kvm-creator @@ -30,7 +30,7 @@ if [ "$?" -eq 0 ]; then else TAP=tap0 # use a locally-administered MAC address: - MAC=02:00:00:00:00:01 + MAC=${6:-02:00:00:00:00:01} fi usage() { @@ -150,7 +150,7 @@ EOF demo() { validate - for foo in NAME VG TAP RAM MAC SIZE DISK ; do + for foo in NAME VG SIZE RAM TAP MAC DISK ; do echo "$foo : ${!foo}" done -- cgit v1.2.3