2018-10-16 09:01:38 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-03-11 11:43:45 +00:00
|
|
|
if [ "$1" = "b" ]; then
|
|
|
|
# ./run b: bochs
|
|
|
|
bochs -q -f .bochsrc
|
|
|
|
elif [ "$1" = "qn" ]; then
|
|
|
|
# ./run qn: qemu without network
|
2019-03-10 14:25:33 +00:00
|
|
|
qemu-system-i386 -s -m 32 -device e1000 -drive format=raw,file=.floppy-image,if=floppy -drive format=raw,file=_fs_contents #$@
|
2018-11-29 02:45:23 +00:00
|
|
|
else
|
2019-03-11 11:43:45 +00:00
|
|
|
echo run with net
|
|
|
|
# ./run: qemu with network
|
2019-03-11 22:21:38 +00:00
|
|
|
sudo qemu-system-i386 -s -m 32 -object filter-dump,id=hue,netdev=br0,file=e1000.pcap -netdev tap,ifname=tap0,id=br0 -device e1000,netdev=br0 -drive format=raw,file=.floppy-image,if=floppy -drive format=raw,file=_fs_contents
|
2018-10-17 14:58:35 +00:00
|
|
|
fi
|
2018-10-16 09:01:38 +00:00
|
|
|
|