diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2012-05-26 16:35:43 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2012-08-23 13:26:07 +0200 |
commit | 2a38aa29ba678a28a0a9591a0131d26b1da6818a (patch) | |
tree | a8dd80b83594528e45f455094d67b16aaac357f0 /net/kvm-ifup | |
parent | 23c14d5164dadfe3c9a2dd294212389c45dd2863 (diff) |
Attempt at multi-net-interfaces with different bridges
Diffstat (limited to 'net/kvm-ifup')
-rwxr-xr-x | net/kvm-ifup | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/kvm-ifup b/net/kvm-ifup index 53c5c3d..54ffc2d 100755 --- a/net/kvm-ifup +++ b/net/kvm-ifup @@ -3,6 +3,9 @@ # Script called by kvm on tap interface creation # +KVM_BR=`basename $0 -ifup|sed -e 's/^[^-]*-\?//'` +KVM_BRIDGE=${KVM_BR:-$KVM_BRIGE} + echo "$0:" echo "Adding $1 to bridge interface $KVM_BRIDGE" brctl addif "$KVM_BRIDGE" "$1" |