Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 157987 | Differences between
and this patch

Collapse All | Expand All

(-)scripts/qemu-ifup.orig (+9 lines)
Line 0 Link Here
1
#!/bin/sh
2
switch=$(/sbin/route | awk '/^default / { print $NF }')
3
if [ $(/sbin/ifconfig | grep -c $1) -gt 0 ]; then
4
        sudo /sbin/brctl delif ${switch} $1
5
        sudo /sbin/ifconfig $1 down
6
fi
7
sudo /usr/bin/tunctl -u $(/usr/bin/whoami) -t $1
8
sudo /sbin/ifconfig $1 0.0.0.0 promisc up
9
sudo /sbin/brctl addif ${switch} $1
0
10

Return to bug 157987