aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvm-manager4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvm-manager b/kvm-manager
index 43e664f..6ba3629 100755
--- a/kvm-manager
+++ b/kvm-manager
@@ -28,7 +28,7 @@ OWNERHOME=$(getent passwd "$OWNER" | cut -f6 -d: )
up() {
# bring up the network tap:
modprobe -v tun
- tunctl -u "$OWNER" -t "$TAP"
+ ip tuntap add dev "$TAP" mode tap user "$OWNER"
ip link set "$TAP" up
brctl addif br0 "$TAP"
@@ -115,7 +115,7 @@ EOF
down() {
brctl delif br0 "$TAP"
ip link set "$TAP" down
- tunctl -d "$TAP"
+ ip tuntap del mode tap dev "$TAP"
# no need to lock up the block device as well, since the owner might
# prefer to manipulate the disk directly.
}