home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / Other / Coherent / base / disk1.4.10.dd / bin / umount < prev   
Encoding:
Text File  |  1994-05-23  |  789 b   |  29 lines

  1. # /bin/mount
  2. # Mon May 23 16:50:53 1994 CDT
  3.  
  4. # /bin/mount, /bin/umount
  5. # Template file Mon May  2 08:25:30 1994 CDT
  6.  
  7. # Definitions for the most commonly used diskette formats.
  8. # Change these to the appropriate device names for your system.
  9. DEFF0=/dev/fva0
  10. DEFF1=/dev/fha1
  11.  
  12. # Set cmd to execute /etc/mount or /etc/umount.
  13. case $0$# in
  14.     *um*1)    cmd='exec /etc/umount $special';;
  15.     *um*)    cmd='exec /etc/umount $*';;
  16.     *1|*2)    flags=$2 cmd='exec /etc/mount $special $directory $flags';;
  17.     *)    cmd='exec /etc/mount $*';;
  18. esac
  19.  
  20. # Abbreviations may be deleted from or added to this table.
  21. case $1 in
  22.     f0)    special=$DEFF0 directory=/f0;;
  23.     f1)    special=$DEFF1 directory=/f1;;
  24.     f??0)    special=/dev/$1 directory=/f0;;
  25.     f??1)    special=/dev/$1 directory=/f1;;
  26.     *)    special=$1 directory=$2 flags=;;
  27. esac
  28. eval $cmd
  29.