summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/kvm/files/kvm_add-scripts-qemu-ifup.patch')
-rw-r--r--app-emulation/kvm/files/kvm_add-scripts-qemu-ifup.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-emulation/kvm/files/kvm_add-scripts-qemu-ifup.patch b/app-emulation/kvm/files/kvm_add-scripts-qemu-ifup.patch
new file mode 100644
index 0000000..37fc63e
--- /dev/null
+++ b/app-emulation/kvm/files/kvm_add-scripts-qemu-ifup.patch
@@ -0,0 +1,12 @@
+
+Taken from upstream SVN, in scripts/qemu-ifup.
+
+diff -ruN scripts-orig/qemu-ifup scripts/qemu-ifup
+--- scripts-orig/qemu-ifup 1970-01-01 02:00:00.000000000 +0200
++++ scripts/qemu-ifup 2006-12-23 08:32:56.000000000 +0200
+@@ -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