]> gitweb.fluxo.info Git - kvm-manager.git/commitdiff
silly bugfix
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 6 Jun 2011 23:30:21 +0000 (19:30 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 6 Jun 2011 23:30:21 +0000 (19:30 -0400)
kvm-manager

index 3e575c6515adde3ce34ceb45d5291e61d1813441..a8616c3f649c03428dab50917e0b60c9bf4e4bc1 100755 (executable)
@@ -19,7 +19,7 @@ if [ -z "$VMNAME" ] ; then
     exit 1
 fi
 
-TAP="${TAP:-${NAME}}"
+TAP="${TAP:-${VMNAME}}"
 # 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:)" )}"