New developer version 0.6.8; added select () function; added demonstrating example...
[ZeXOS.git] / apps / mserver / make_img.sh
blob027708bea6de8e6c862cfdf50ff1fef3825d6deb
1 #!/bin/bash
3 if [ "$USER" = "root" ] ; then
5 # Folder name of your application
6 APPNAME="mserver"
8 # Compile source
9 make
11 # Optimized for 1,4MB floppy
12 dd if=/dev/zero of=$APPNAME.img bs=1440k count=1
13 mkfs.vfat $APPNAME.img
15 mkdir floppy
16 mount -oloop $APPNAME.img floppy
17 cp $APPNAME floppy
18 umount floppy
19 rmdir floppy
21 else
23 echo "Please start this script as root - it is needed for mount program"