summaryrefslogtreecommitdiffstats
path: root/net/kvm-ifdown
blob: d72e728ca3b58da5a763dce54dbcab9a1267f241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#
# Script called by kvm on tap interface deletion
#

KVM_BR=`basename $0 -ifdown|sed -e 's/^[^-]*-\?//'`
KVM_BRIDGE=${KVM_BR:-$KVM_BRIDGE}

echo "$0:"
echo "Removing $1 from bridge $KVM_BRIDGE"
ip link set "$1" down
brctl delif "$KVM_BRIDGE" "$1"