aboutsummaryrefslogtreecommitdiff
path: root/kvm-creator
diff options
context:
space:
mode:
authorJamie McClelland <jm@mayfirst.org>2009-10-08 21:48:02 -0400
committerJamie McClelland <jm@mayfirst.org>2009-10-08 21:48:02 -0400
commit0de61dbe1de6e173481729e53e32083c9e28b7e5 (patch)
tree9ec9295d16c260d54ce94baac04fd1b95422f65c /kvm-creator
parentbd51acb7c87e37a1831d1269c3b877229a773698 (diff)
downloadkvm-manager-0de61dbe1de6e173481729e53e32083c9e28b7e5.tar.gz
kvm-manager-0de61dbe1de6e173481729e53e32083c9e28b7e5.tar.bz2
i think tap should be tap0 not just 0...
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 cd4f6f6..6a1300a 100755
--- a/kvm-creator
+++ b/kvm-creator
@@ -16,10 +16,10 @@ RAM="${4:-512}"
[ ! -d /etc/sv/kvm ] && mkdir /etc/sv/kvm
if [ ls /etc/sv/kvm/* &> /dev/null ]; then
- TAP="${5:-$(( $( cat /etc/sv/kvm/*/env/TAP | sed 's/^tap//' | sort -n | tail -n 1 ) + 1 ))}"
+ TAP="${5:-tap$(( $( cat /etc/sv/kvm/*/env/TAP | sed 's/^tap//' | sort -n | tail -n 1 ) + 1 ))}"
MAC="${6:-$(cat /etc/sv/kvm/*/env/MAC | head -n1 | cut -f 1-5 -d: ):$(( $( cat /etc/sv/kvm/*/env/MAC | cut -f 6 -d: | sort -n | tail -n 1 ) + 1 ))}"
else
- TAP=1
+ TAP=tap0
MAC=:1
fi