poky/scripts/qemu-ifup
Richard Purdie d35635aff2 scripts/runqemu improvements:
* Try harder to find ifconfig
 * Error out if the environment isn't correct
 * Tell the user we're running sudo


git-svn-id: https://svn.o-hand.com/repos/poky/trunk@989 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-11-30 11:16:21 +00:00

10 lines
158 B
Bash
Executable File

#!/bin/sh
IFCONFIG=`which ifconfig`
if [ "x$IFCONFIG" == "x" ]; then
# better than nothing...
IFCONFIG=/sbin/ifconfig
fi
$IFCONFIG tap0 192.168.7.1