#!/system/bin/sh
# us 'sdl' graphic interface with any arguments

cd bin
if [ $# -eq 0 ]; then
  ./qemu-system-i386 -hda ../xp.qcow2 -m 128 -soundhw es1370 -net nic,model=rtl8139 -net user -vnc :0 -vga vmware -monitor stdio
elif [ $# -ge 1 ]; then
  DISPLAY=:0 ./qemu-system-i386 -hda ../xp.qcow2 -m 128 -soundhw es1370 -net nic,model=rtl8139 -net user -vga vmware -monitor stdio
fi
