diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2011-06-06 22:04:14 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2011-06-06 22:04:14 -0400 |
commit | 8af657998a44395fdaae065c84ed3dd351f61259 (patch) | |
tree | 8268847a06b76485786d9c68984811c7cc679c1a | |
parent | 849fc60ffa6f9d1276be10cfbcc94e6134692d85 (diff) | |
download | kvm-manager-8af657998a44395fdaae065c84ed3dd351f61259.tar.gz kvm-manager-8af657998a44395fdaae065c84ed3dd351f61259.tar.bz2 |
use ${VMNAME}0 instead of ${VMNAME} for tap interface
-rwxr-xr-x | kvm-manager | 2 |
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:)" )}" |