Usermode/AxWin3 - Added menu render code (with hilights)
[tpg/acess2.git] / RunQemu
1 #!/bin/sh
2 #qemu-system-x86_64 -fda DiskImage.img -boot a -serial stdio -net user,hostname=prelude,dns=10.0.2.1 -net nic,model=ne2k_pci -vga std
3
4 QEMU=qemu-system-x86_64
5 USE_GDB=
6
7 QEMU_PARAMS="-fda DiskImage.img -boot a"
8 QEMU_PARAMS=$QEMU_PARAMS" -hda AcessHDD.img"
9 QEMU_PARAMS=$QEMU_PARAMS" -vga std"
10 QEMU_PARAMS=$QEMU_PARAMS" -smp 2"
11 QEMU_PARAMS=$QEMU_PARAMS" -net nic"
12
13 QEMU_PARAMS=$QEMU_PARAMS" -usb"
14 QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none"
15 QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image"
16 _NETTYPE="user"
17
18 while [ $# -ne 0 ]; do
19         case $1 in
20         -gdb)
21                 QEMU_PARAMS=$QEMU_PARAMS" -s -S"
22                 ;;
23         -dbgbin)
24                 QEMU=/home/tpg/apps/bin/qemu-system-x86_64
25                 ;;
26         -extramem)
27                 QEMU_PARAMS=$QEMU_PARAMS" -m 768"
28                 ;;
29         -e)
30                 shift
31                 QEMU_PARAMS=$QEMU_PARAMS" "$1
32                 ;;
33         -tuntap)
34                 _NETTYPE="tap"
35         esac
36         shift
37 done
38 QEMU_PARAMS=$QEMU_PARAMS" -net "$_NETTYPE
39
40 #       /home/tpg/apps/bin/qemu-system-x86_64 $QEMU_PARAMS -serial stdio -serial file:QemuLog.txt
41 #       qemu-system-x86_64 $QEMU_PARAMS -serial stdio | tee QemuLog.txt
42 $QEMU $QEMU_PARAMS -serial stdio | tee QemuLog.txt

UCC git Repository :: git.ucc.asn.au