diff options
author | Ross Burton <ross@openedhand.com> | 2008-04-24 14:50:41 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2008-04-24 14:50:41 +0000 |
commit | e02398f08d6864cab4402e08a8dcf8d39f624b42 (patch) | |
tree | 7c4ac1f2e8d6c945e14fcd75ac6ec278050998cb /scripts | |
parent | 85049069b0a5d4df154a8a1df612ab3163ed1045 (diff) | |
download | poky-e02398f08d6864cab4402e08a8dcf8d39f624b42.tar.gz |
Fix runqemu to handle clearing args
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4328 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 854d675d19..d69e7a3e23 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -36,10 +36,12 @@ if [ "x$1" = "x" ]; then | |||
36 | exit 1 | 36 | exit 1 |
37 | else | 37 | else |
38 | MACHINE=$1 | 38 | MACHINE=$1 |
39 | shift | ||
39 | fi | 40 | fi |
40 | 41 | ||
41 | if [ "x$2" != "x" ]; then | 42 | if [ "x$1" != "x" ]; then |
42 | TYPE=$2 | 43 | TYPE=$1 |
44 | shift | ||
43 | else | 45 | else |
44 | TYPE="ext2" | 46 | TYPE="ext2" |
45 | if [ "$MACHINE" = "akita" ]; then | 47 | if [ "$MACHINE" = "akita" ]; then |
@@ -53,12 +55,14 @@ else | |||
53 | fi | 55 | fi |
54 | fi | 56 | fi |
55 | 57 | ||
56 | if [ "x$3" != "x" ]; then | 58 | if [ "x$1" != "x" ]; then |
57 | ZIMAGE=$3 | 59 | ZIMAGE=$1 |
60 | shift | ||
58 | fi | 61 | fi |
59 | 62 | ||
60 | if [ "x$4" != "x" ]; then | 63 | if [ "x$1" != "x" ]; then |
61 | HDIMAGE=$4 | 64 | HDIMAGE=$1 |
65 | shift | ||
62 | fi | 66 | fi |
63 | 67 | ||
64 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then | 68 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then |