diff options
author | Richard Purdie <richard@openedhand.com> | 2006-11-30 11:16:21 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-11-30 11:16:21 +0000 |
commit | d35635aff2a9ba8383b8ba295ec9684185d1f372 (patch) | |
tree | c48577bcd69adb2c97dd4bf80ec3e7d260e13eef /scripts/qemu-ifup | |
parent | 6ee267a55e1fc0df5267021de17814f2fda43e6b (diff) | |
download | poky-d35635aff2a9ba8383b8ba295ec9684185d1f372.tar.gz |
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-x | scripts/qemu-ifup | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/qemu-ifup b/scripts/qemu-ifup index da3918c6ac..8abe35f57b 100755 --- a/scripts/qemu-ifup +++ b/scripts/qemu-ifup | |||
@@ -1,2 +1,9 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | ifconfig tap0 192.168.7.1 \ No newline at end of file | 2 | |
3 | IFCONFIG=`which ifconfig` | ||
4 | if [ "x$IFCONFIG" == "x" ]; then | ||
5 | # better than nothing... | ||
6 | IFCONFIG=/sbin/ifconfig | ||
7 | fi | ||
8 | |||
9 | $IFCONFIG tap0 192.168.7.1 | ||