fixed compiled sprites
[dosdemo] / tools / scripts / pceminst
1 #!/bin/sh
2
3 # NOTES:
4 # assumes a PCem setup with a fat16 image mounted at /pcem_dos. fstab entry:
5 #  /home/nuclear/.pcem/pentium_dos.img /pcem_dos msdos user,noauto,loop,fmask=0113,dmask=0002,gid=6,offset=32256 0 0
6
7 mntpt=/pcem_dos
8 do_umount=false
9
10 if ! ( mount | grep pcem >/dev/null ); then
11         mount $mntpt || exit 1
12         do_umount=true
13 fi
14
15 tools/scripts/instdfs $mntpt/tmp
16
17 if $do_umount; then
18         umount $mntpt
19 fi
20 sync