From: John Hodge Date: Thu, 23 Feb 2012 16:05:38 +0000 (+0800) Subject: Extra - Added -nousb and -notee flags to RunQemu X-Git-Tag: rel0.15~754 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=696914a56e084ab4ba50f8ce6b891e606dbbd8e5;p=tpg%2Facess2.git Extra - Added -nousb and -notee flags to RunQemu --- diff --git a/RunQemu b/RunQemu index 10776d54..2b7bc9dc 100755 --- a/RunQemu +++ b/RunQemu @@ -10,10 +10,6 @@ QEMU_PARAMS=$QEMU_PARAMS" -vga std" QEMU_PARAMS=$QEMU_PARAMS" -smp 2" QEMU_PARAMS=$QEMU_PARAMS" -net nic" -QEMU_PARAMS=$QEMU_PARAMS" -usb" -QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none" -QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image" -QEMU_PARAMS=$QEMU_PARAMS" -usbdevice mouse" _NETTYPE="user" while [ $# -ne 0 ]; do @@ -36,11 +32,29 @@ while [ $# -ne 0 ]; do ;; -tuntap) _NETTYPE="tap" + ;; + -nousb) + _NOUSB="yes" + ;; + -notee) + _NOTEE="yes" + ;; esac shift done QEMU_PARAMS=$QEMU_PARAMS" -net "$_NETTYPE +if [ "x$_NOUSB" != "xyes" ] ; then + QEMU_PARAMS=$QEMU_PARAMS" -usb" + QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none" + QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image" + QEMU_PARAMS=$QEMU_PARAMS" -usbdevice mouse" +fi + # /home/tpg/apps/bin/qemu-system-x86_64 $QEMU_PARAMS -serial stdio -serial file:QemuLog.txt # qemu-system-x86_64 $QEMU_PARAMS -serial stdio | tee QemuLog.txt -$QEMU $QEMU_PARAMS -serial stdio | tee QemuLog.txt +if [ "x$_NOTEE" != "xyes" ] ; then + $QEMU $QEMU_PARAMS -serial stdio | tee QemuLog.txt +else + $QEMU $QEMU_PARAMS -serial stdio +fi