aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2011-06-06 22:04:14 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2011-06-06 22:04:14 -0400
commit8af657998a44395fdaae065c84ed3dd351f61259 (patch)
tree8268847a06b76485786d9c68984811c7cc679c1a
parent849fc60ffa6f9d1276be10cfbcc94e6134692d85 (diff)
downloadkvm-manager-8af657998a44395fdaae065c84ed3dd351f61259.tar.gz
kvm-manager-8af657998a44395fdaae065c84ed3dd351f61259.tar.bz2
use ${VMNAME}0 instead of ${VMNAME} for tap interface
-rwxr-xr-xkvm-manager2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-manager b/kvm-manager
index a8616c3..ca01864 100755
--- a/kvm-manager
+++ b/kvm-manager
@@ -19,7 +19,7 @@ if [ -z "$VMNAME" ] ; then
exit 1
fi
-TAP="${TAP:-${VMNAME}}"
+TAP="${TAP:-${VMNAME}0}"
# MAC address is derived from a hash of the host's name and the guest's name:
MAC="${MAC:-$(printf "02:%s" "$(printf "%s\0%s" "$(hostname)" "${VMNAME}" | sha256sum | sed 's/\(..\)/\1:/g' | cut -f1-5 -d:)" )}"