#!/bin/ksh
# mkfdfs
#
# Create a read only AIX filesystem on a diskette drive.
#      
# Usage : mkfdfs directory-with-files-in
#
# John Roebuck - 07/06/99

if [ $# -ne 1 ]
   then echo " "
	echo "Usage : mkfdfs directory-with-files-in"
	echo " "
        exit 1
fi

protofile=$1/fdfs-proto-info

echo "<noboot> 0 0" > $protofile
proto $1 >> $protofile

mkfs -p $protofile -V jfs /dev/fd0

echo "\nMount the diskette filesystem using :-"
echo "\n mount -r -v jfs /dev/fd0 (mount-point)\n"
