summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/runqemu16
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
37else 37else
38 MACHINE=$1 38 MACHINE=$1
39 shift
39fi 40fi
40 41
41if [ "x$2" != "x" ]; then 42if [ "x$1" != "x" ]; then
42 TYPE=$2 43 TYPE=$1
44 shift
43else 45else
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
54fi 56fi
55 57
56if [ "x$3" != "x" ]; then 58if [ "x$1" != "x" ]; then
57 ZIMAGE=$3 59 ZIMAGE=$1
60 shift
58fi 61fi
59 62
60if [ "x$4" != "x" ]; then 63if [ "x$1" != "x" ]; then
61 HDIMAGE=$4 64 HDIMAGE=$1
65 shift
62fi 66fi
63 67
64if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then 68if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then