head 1.1; access; symbols; locks georg:1.1; strict; comment @# @; 1.1 date 2003.06.28.19.54.05; author georg; state Exp; branches; next ; desc @@ 1.1 log @Initial revision @ text @sundir="/home/sunpendulum" imagedir="{sundir}/images" mfsdir="{sundir}/mfs" flpdir="{sundir}/flp" case $1 in start) cd ${imagedir} gunzip mfsroot.gz vnconfig -c vn0 mfsroot mount /dev/vn0c ${mfsdir} cd - ;; stop) cd ${sundir} umount -f ${mfsdir} vnconfig -u vn0 gzip -9 mfsroot vnconfig -c vn0 mfsroot.flp mount /dev/vn0c ${flpdir} rm -rf ${flpdir}/* cp mfsroot.gz ${flpdir} umount ${flpdir} vnconfig -u vn0 echo -n "floopy drin? C to abort" read dd if=mfsroot.flp of=/dev/fd0 cd - ;; *) echo "Usage: "$(basename $0)" [start|stop]" exit ;; esac @