diff options
author | Dor Laor <dor@qumranet.com> | 2006-10-19 10:58:43 +0000 |
---|---|---|
committer | Dor Laor <dor@qumranet.com> | 2006-10-19 10:58:43 +0000 |
commit | 06463f74bc5d61ac85481aab16630a6808ad78ae (patch) | |
tree | ff8b8481dae299d6b250869cf49b63abedad9fe2 /scripts | |
parent | a9913e8d34aec45aec679f0345c9e194c8b51ab2 (diff) |
- Add the kvm init script to the rpm
- Add qemu-ifup script for attaching a tap device to the bridge
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/qemu-ifup | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/qemu-ifup b/scripts/qemu-ifup new file mode 100755 index 00000000..243e02fa --- /dev/null +++ b/scripts/qemu-ifup @@ -0,0 +1,5 @@ +#!/bin/sh + +switch=$(ip route list | awk '/^default / { print $NF }') +ifconfig $1 0.0.0.0 up +brctl addif ${switch} $1 |