X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=tools%2Fscripts%2Fpceminst;fp=tools%2Fscripts%2Fpceminst;h=30244e206dda896739ab815c647ac1ff48aa4c58;hb=7cffbf057545fb303ad8f53e432ef42f7708e16d;hp=0000000000000000000000000000000000000000;hpb=68f89fa06ae5cfacde9cf8310e97220e5fc05260;p=dosdemo diff --git a/tools/scripts/pceminst b/tools/scripts/pceminst new file mode 100755 index 0000000..30244e2 --- /dev/null +++ b/tools/scripts/pceminst @@ -0,0 +1,20 @@ +#!/bin/sh + +# NOTES: +# assumes a PCem setup with a fat16 image mounted at /pcem_dos. fstab entry: +# /home/nuclear/.pcem/pentium_dos.img /pcem_dos msdos user,noauto,loop,fmask=0113,dmask=0002,gid=6,offset=32256 0 0 + +mntpt=/pcem_dos +do_umount=false + +if ! ( mount | grep pcem ); then + mount $mntpt || exit 1 + do_umount=true +fi + +tools/scripts/instdfs $mntpt/tmp + +if $do_umount; then + umount $mntpt +fi +sync