summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-06-09 13:39:26 -0700
committerKhem Raj <raj.khem@gmail.com>2010-06-09 13:39:26 -0700
commit0f5be314dd920d6a37e16df54ccb8d85384c4dba (patch)
tree33f58bcfdefdedffc089d1a0613b3dfa7f3c3609
parent246c80637b135f3a113d319b163422f98174ee6c (diff)
run-qemu.sh: Suppport option to boot into single user shell.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rwxr-xr-xcontrib/qemu/run-qemu.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/qemu/run-qemu.sh b/contrib/qemu/run-qemu.sh
index ec863c2a12..7f832609a1 100755
--- a/contrib/qemu/run-qemu.sh
+++ b/contrib/qemu/run-qemu.sh
@@ -55,7 +55,7 @@
# is disabled
supported_archs="{arm mips ppc sh4 x86}"
-if [ $# -ne 2 ]; then
+if [ $# -lt 2 ]; then
echo -en "
Usage: `basename $0` <arch> <libc>
where <arch> is one $supported_archs
@@ -83,7 +83,7 @@ case $arch in
rootdisk="sda"
qemuopts="-nographic"
kernel="zImage"
- image="minimalist-image"
+ image="native-sdk-image"
;;
mips)
address="10.0.1.102"
@@ -187,7 +187,7 @@ else
netopt="-net none"
fi
-if [ "x$2" == "xsingle" ]; then
+if [ "x$3" == "xsingle" ]; then
init="init=/bin/sh"
else
init=""