summaryrefslogtreecommitdiff
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2008-04-24 14:50:41 +0000
committerRoss Burton <ross@openedhand.com>2008-04-24 14:50:41 +0000
commite02398f08d6864cab4402e08a8dcf8d39f624b42 (patch)
tree7c4ac1f2e8d6c945e14fcd75ac6ec278050998cb /scripts/runqemu
parent85049069b0a5d4df154a8a1df612ab3163ed1045 (diff)
downloadopenembedded-core-e02398f08d6864cab4402e08a8dcf8d39f624b42.tar.gz
openembedded-core-e02398f08d6864cab4402e08a8dcf8d39f624b42.tar.bz2
openembedded-core-e02398f08d6864cab4402e08a8dcf8d39f624b42.tar.xz
openembedded-core-e02398f08d6864cab4402e08a8dcf8d39f624b42.zip
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/runqemu')
-rwxr-xr-xscripts/runqemu16
1 files changed, 10 insertions, 6 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 854d675d1..d69e7a3e2 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -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