aboutsummaryrefslogtreecommitdiff
path: root/kvm-creator
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-12-11 21:24:16 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-12-11 21:24:16 -0500
commitc4f207e85a33bc6cee2d4cefb42a62ed77b08961 (patch)
tree2d1cb931c0e879aff02f019832efd8f80bbba604 /kvm-creator
parent60d9be3908fdc071662b01c4c8058b3ddd884ad1 (diff)
downloadkvm-manager-c4f207e85a33bc6cee2d4cefb42a62ed77b08961.tar.gz
kvm-manager-c4f207e85a33bc6cee2d4cefb42a62ed77b08961.tar.bz2
fix output of demo command, and accept default config for MAC address
Diffstat (limited to 'kvm-creator')
-rwxr-xr-xkvm-creator4
1 files changed, 2 insertions, 2 deletions
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