启动Dos模拟环境的shell小脚本
时间:2006-09-13 来源:CUDev
做了一个启动Dos模拟环境的shell小脚本:
#!/bin/sh IMGDIR=/home/wangyao/Exam/dos.img MNTDIR=/media/floppy0 # Only the root can mount if [ ${UID} != 0 ]; then echo "Error,Only root can mount the image!" exit 1 fi #mount the dos image mount | grep /media/floppy0 > /dev/null if [ $? -eq 0 ];then umount $MNTDIR fi mount -o loop $IMGDIR $MNTDIR #qemu boot from the dos qemu -fda $IMGDIR -boot a |
相关阅读 更多 +