blob: 9e425e6ed65322fc5806741a75b32fd70114636b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
#
# Script called by kvm on tap interface creation
#
KVM_BR=`basename $0 -ifup|sed -e 's/^[^-]*-\?//'`
KVM_BRIDGE=${KVM_BR:-$KVM_BRIDGE}
echo "$0:"
echo "Adding $1 to bridge interface $KVM_BRIDGE"
brctl addif "$KVM_BRIDGE" "$1"
ip link set "$1" up
|