]> code.ossystems Code Review - openembedded-core.git/commitdiff
Fix runqemu to handle clearing args
authorRoss Burton <ross@openedhand.com>
Thu, 24 Apr 2008 14:50:41 +0000 (14:50 +0000)
committerRoss Burton <ross@openedhand.com>
Thu, 24 Apr 2008 14:50:41 +0000 (14:50 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4328 311d38ba-8fff-0310-9ca6-ca027cbcb966

scripts/runqemu

index 854d675d19152c21ffceeaac5e07c5afbda7344d..d69e7a3e2355368ccb187a14f688f0c1fd7ca5b1 100755 (executable)
@@ -36,10 +36,12 @@ if [ "x$1" = "x" ]; then
     exit 1
 else
     MACHINE=$1
+    shift
 fi
 
-if [ "x$2" != "x" ]; then
-    TYPE=$2
+if [ "x$1" != "x" ]; then
+    TYPE=$1
+    shift
 else
     TYPE="ext2"
     if [ "$MACHINE" = "akita" ]; then
@@ -53,12 +55,14 @@ else
     fi
 fi
 
-if [ "x$3" != "x" ]; then
-    ZIMAGE=$3
+if [ "x$1" != "x" ]; then
+    ZIMAGE=$1
+    shift
 fi
 
-if [ "x$4" != "x" ]; then
-    HDIMAGE=$4
+if [ "x$1" != "x" ]; then
+    HDIMAGE=$1
+    shift
 fi
 
 if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o "$MACHINE" = "akita" -o "$MACHINE" = "nokia800" ]; then