home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / base / root.16 / etc / init.d / mkdtab / mkdtab~
Text File  |  1998-08-19  |  757b  |  38 lines

  1. #ident    "@(#)initpkg:i386/cmd/initpkg/init.d/mkdtab    1.1.5.4"
  2.  
  3. #
  4. # Update device.tab and dgroup.tab files to reflect new floppy configuration.
  5. #
  6.  
  7. /usr/sadm/sysadm/bin/flpyconf 2>/dev/null
  8. if [ $? -ne 0 ]
  9. then
  10.     /usr/sadm/sysadm/bin/mkdtab
  11.     if [ -x /sbin/fdinit ]
  12.     then
  13.         rm -f /dev/fd0 /dev/fd1 /dev/rfd0 /dev/rfd1
  14.         type=`/sbin/fdinit -f 0`
  15.         if [ $type -eq "3" ]
  16.         then
  17.             ln /dev/dsk/f03ht /dev/fd0
  18.             ln /dev/rdsk/f03ht /dev/rfd0
  19.         elif [ $type -eq "5" ]
  20.         then
  21.             ln /dev/dsk/f05ht /dev/fd0
  22.             ln /dev/rdsk/f05ht /dev/rfd0
  23.         fi
  24.  
  25.         type=`/sbin/fdinit -f 1`
  26.         if [ $type -eq "3" ]
  27.         then
  28.             ln /dev/dsk/f13ht /dev/fd1
  29.             ln /dev/rdsk/f13ht /dev/rfd1
  30.         elif [ $type -eq "5" ]
  31.         then
  32.             ln /dev/dsk/f15ht /dev/fd1
  33.             ln /dev/rdsk/f15ht /dev/rfd1
  34.         fi
  35.  
  36.     fi
  37. fi
  38.