From d35635aff2a9ba8383b8ba295ec9684185d1f372 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 30 Nov 2006 11:16:21 +0000 Subject: 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 --- scripts/qemu-ifup | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'scripts/qemu-ifup') 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 -- cgit v1.2.3