_NETTYPE="user"
+_EVAL=eval
+
while [ $# -ne 0 ]; do
case $1 in
-gdb)
_kfile="KernelLand/Acess2.$1-$2.bin"
fi
BOOTOPT="-kernel $_kfile"
- BOOTOPT=$BOOTOPT" -initrd KernelLand/Modules/Filesystems/FS_InitRD.kmd.$1 -append $3"
+ BOOTOPT=$BOOTOPT" -initrd KernelLand/Modules/Filesystems/FS_InitRD.kmd.$1 -append \"$3\""
shift
shift
;;
shift
QEMU_PARAMS=$QEMU_PARAMS" "$1
;;
+ -n)
+ _EVAL=echo
+ ;;
-fwd)
_NETTYPE=$_NETTYPE",hostfwd=tcp::10023-10.0.2.10:23"
;;
# qemu-system-x86_64 $QEMU_PARAMS -serial stdio | tee QemuLog.txt
#echo $QEMU $BOOTOPT $QEMU_PARAMS
if [ "x$_NOGRAPHIC" = "xyes" ] ; then
- $QEMU $BOOTOPT $QEMU_PARAMS -nographic
+ $_EVAL $QEMU $BOOTOPT $QEMU_PARAMS -nographic | tee QemuLog.txt
exit
fi
if [ "x$_NOTEE" = "xyes" ] ; then
- $QEMU $BOOTOPT $QEMU_PARAMS -serial stdio
+ $_EVAL $QEMU $BOOTOPT $QEMU_PARAMS -serial stdio
exit
fi
-$QEMU $BOOTOPT $QEMU_PARAMS -serial stdio | tee QemuLog.txt
+$_EVAL $QEMU $BOOTOPT $QEMU_PARAMS -serial stdio | tee QemuLog.txt