文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>启动Dos模拟环境的shell小脚本

启动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

相关阅读 更多 +
排行榜 更多 +
西安交大通

西安交大通

生活实用 下载
长江云通

长江云通

生活实用 下载
translatez

translatez

生活实用 下载