u-boot: Add PSP version for am387x-evm
[openembedded.git] / contrib / qemu / qemu-ifup
blob34ae96013f53eab8ebd61397e198eb239841c5c3
1 #!/bin/sh
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