summaryrefslogtreecommitdiff
path: root/scripts/qemu-ifup
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-11-30 11:16:21 +0000
committerRichard Purdie <richard@openedhand.com>2006-11-30 11:16:21 +0000
commitd35635aff2a9ba8383b8ba295ec9684185d1f372 (patch)
treec48577bcd69adb2c97dd4bf80ec3e7d260e13eef /scripts/qemu-ifup
parent6ee267a55e1fc0df5267021de17814f2fda43e6b (diff)
downloadopenembedded-core-d35635aff2a9ba8383b8ba295ec9684185d1f372.tar.gz
openembedded-core-d35635aff2a9ba8383b8ba295ec9684185d1f372.tar.bz2
openembedded-core-d35635aff2a9ba8383b8ba295ec9684185d1f372.tar.xz
openembedded-core-d35635aff2a9ba8383b8ba295ec9684185d1f372.zip
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
Diffstat (limited to 'scripts/qemu-ifup')
-rwxr-xr-xscripts/qemu-ifup9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/qemu-ifup b/scripts/qemu-ifup
index da3918c6a..8abe35f57 100755
--- a/scripts/qemu-ifup
+++ b/scripts/qemu-ifup
@@ -1,2 +1,9 @@
#!/bin/sh
-ifconfig tap0 192.168.7.1 \ No newline at end of file
+
+IFCONFIG=`which ifconfig`
+if [ "x$IFCONFIG" == "x" ]; then
+ # better than nothing...
+ IFCONFIG=/sbin/ifconfig
+fi
+
+$IFCONFIG tap0 192.168.7.1