#! /bin/sh # from http://yceran.org/eps # Parameter checking CMD=read if [ "`basename $0`" == "epswrite" ] ; then CMD=write ; fi if [ "$1" == "read" ] ; then CMD=read ; fi if [ "$1" == "write" ] ; then CMD=write ; fi # Do the actual work CYL=0 while [ $CYL -lt 80 ] ; do fdrawcmd $CMD 0 $CYL 0 0 2 10 0x1b 0xff length=5120 rate=2 track=$CYL # Second side fdrawcmd $CMD 4 $CYL 1 0 2 10 0x1b 0xff length=5120 rate=2 track=$CYL CYL=$(( $CYL + 1 )) done