2 echo "executing qemu-ifup"
3 sudo
/sbin
/modprobe tun
# to network QEMU
4 echo "bringing up $1 for bridged mode..."
6 sudo
/sbin
/ifconfig
$1 0.0.0.0 up
7 bridge
=$
(/sbin
/ip route list |
/usr
/bin
/awk '/^default / { print $5 }')
8 echo "adding $1 to $bridge ..."
9 sudo
/usr
/sbin
/brctl addif
${bridge} $1