This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.1'.
[unix-history] / etc / etc.i386 / MAKEDEV
index 3d01dbd..7793197 100644 (file)
 #      wt*     QIC-interfaced (e.g. not SCSI) 3M cartridge tape
 #      st*     "NEW type scsi tapes" (old driver uses the
 #              block devices of the disks to get access)
 #      wt*     QIC-interfaced (e.g. not SCSI) 3M cartridge tape
 #      st*     "NEW type scsi tapes" (old driver uses the
 #              block devices of the disks to get access)
+#      ft*     QIC-40/QIC-80 3M cartridge tape (interfaced
+#              via the floppy disk controller)
 #
 # Disks:
 #      wd*     "winchester" disk drives (ST506,IDE,ESDI,RLL,...)
 #      fd*     "floppy" disk drives (3 1/2", 5 1/4")
 #      sd*     "scsi disks"
 #
 # Disks:
 #      wd*     "winchester" disk drives (ST506,IDE,ESDI,RLL,...)
 #      fd*     "floppy" disk drives (3 1/2", 5 1/4")
 #      sd*     "scsi disks"
-#      cd*     "cdrom disks"
+#      cd*     "scsi cdrom disks"
+#      mcd*    "mitsumi cdrom disks"
 #
 # Console ports:
 #      pc*     devices for stock pccons
 #
 # Console ports:
 #      pc*     devices for stock pccons
@@ -46,8 +49,9 @@
 #      psm*    PS/2 mouse
 #
 # Terminal ports:
 #      psm*    PS/2 mouse
 #
 # Terminal ports:
-#      sio*    fast interrupt PC COM ports (really makes tty* entries for sio)
-#      tty*    alias for sio ports, this is what the system really wants
+#       ttyd*   dialin ports
+#       cua*    dialout ports
+#       tty*    hardwired terminals
 #      com*    standard PC COM ports (really makes tty* entries for com)
 #              Note that the `com' driver is not configured in the 
 #              supplied kernels and is usually not what you want.  In
 #      com*    standard PC COM ports (really makes tty* entries for com)
 #              Note that the `com' driver is not configured in the 
 #              supplied kernels and is usually not what you want.  In
@@ -71,7 +75,7 @@
 #      tw*     xten power controller
 #      snd*    various sound cards
 #
 #      tw*     xten power controller
 #      snd*    various sound cards
 #
-#      $Id: MAKEDEV,v 1.20 1993/12/21 05:49:28 ache Exp $
+#      $Id: MAKEDEV,v 1.28 1994/02/19 15:45:13 ache Exp $
 #
 
 PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
 #
 
 PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
@@ -82,10 +86,10 @@ case $i in
 
 all)
        sh MAKEDEV std                                          # standard
 
 all)
        sh MAKEDEV std                                          # standard
-       sh MAKEDEV wd0 wd1 fd0 fd1 wt0 sd0 sd1 st0 cd0          # bdev
-       sh MAKEDEV pty0 tty0 tty1 tty2 tty3 pc0 lpt0 lpt1 lpt2  # cdev
+       sh MAKEDEV wd0 wd1 fd0 fd1 ft0 wt0 sd0 sd1 st0 cd0 mcd0 # bdev
+       sh MAKEDEV pty0 tty0 tty1 pc0 lpt0 lpt1 lpt2            # cdev
        sh MAKEDEV ch0 tw0 bpf0 dcf0 lpa0 lpa1 lpa2             # cdev
        sh MAKEDEV ch0 tw0 bpf0 dcf0 lpa0 lpa1 lpa2             # cdev
-       sh MAKEDEV speaker mse0 sio0 sio1 sio2 sio3             # cdev
+       sh MAKEDEV speaker mse0 ttyd2 ttyd3                     # cdev
        # NOTE: co0 and vty04 are not done by a "sh MAKEDEV all"
        # these are for codrv and interfere with other devices! - rgrimes
        ;;
        # NOTE: co0 and vty04 are not done by a "sh MAKEDEV all"
        # these are for codrv and interfere with other devices! - rgrimes
        ;;
@@ -221,6 +225,28 @@ fd*)
        umask 77
        ;;
 
        umask 77
        ;;
 
+
+ft*)
+       umask 2 ; unit=`expr $i : '..\(.*\)'`
+       name=ft; blk=2; chr=9;
+       rm -f $name$unit* r$name$unit*
+       case $unit in
+       0|1|2|3)
+               mknod ${name}${unit}   b $blk `expr $unit '*' 64 + 32`
+               mknod r${name}${unit}  c $chr `expr $unit '*' 64 + 32`
+               ln ${name}${unit} ${name}${unit}a
+               ln r${name}${unit} r${name}${unit}a
+               chgrp operator ${name}${unit}* r${name}${unit}*
+               chmod 640 ${name}${unit}* r${name}${unit}*
+               ;;
+       *)
+               echo bad unit for tape in: $i
+               ;;
+       esac
+       umask 77
+       ;;
+
+
 sd*|wd*)
        umask 2 ; unit=`expr $i : '..\(.*\)'`
        case $i in
 sd*|wd*)
        umask 2 ; unit=`expr $i : '..\(.*\)'`
        case $i in
@@ -289,9 +315,6 @@ pty*)
                                        rm -f pty%s%x; mknod pty%s%x c 6 %d; ", \
                                        n, i, n, i, b+i, n, i, n, i, b+i); }'`
                umask 77
                                        rm -f pty%s%x; mknod pty%s%x c 6 %d; ", \
                                        n, i, n, i, b+i, n, i, n, i, b+i); }'`
                umask 77
-               if [ $class = 1 ]; then
-                       mv ttyqf ttyv0; mv ptyqf ptyv0
-               fi
                ;;
        esac
        ;;
                ;;
        esac
        ;;
@@ -354,10 +377,11 @@ ch*)
        umask 77
        ;;
 
        umask 77
        ;;
 
-cd*)
-       umask 2 ; unit=`expr $i : '..\(.*\)'`
+cd*|mcd*)
+       umask 2 ;
        case $i in
        case $i in
-       cd*) name=cd; blk=6; chr=15;;
+       cd*) unit=`expr $i : '..\(.*\)'`; name=cd; blk=6; chr=15;;
+       mcd*) unit=`expr $i : '...\(.*\)'`; name=mcd; blk=7; chr=29;;
        esac
        rm -f $name$unit? r$name$unit?
        case $unit in
        esac
        rm -f $name$unit? r$name$unit?
        case $unit in
@@ -395,10 +419,11 @@ tw*)
 pc*)
        chr=12
        minor=0
 pc*)
        chr=12
        minor=0
-       name=vga
-       rm -f ${name} kbd kbdco vgaco ttyv[0-9][0-9]
+       name=ttyv0
+       rm -f ${name} vga kbd kbdco vgaco ttyv[0-9][0-9]
        mknod ${name} c ${chr} ${minor}
        chown root.wheel $name
        mknod ${name} c ${chr} ${minor}
        chown root.wheel $name
+       ln -s ${name} vga
        ;;
 
 # Use this to create virtual consoles for syscons, pcvt or codrv
        ;;
 
 # Use this to create virtual consoles for syscons, pcvt or codrv
@@ -444,11 +469,20 @@ speaker)
        chown root.wheel speaker
        ;;
 
        chown root.wheel speaker
        ;;
 
-sio*|tty*)
-       unit=`expr $i : '...\(.*\)'`
-       rm -f tty0$unit
+cua*|ttyd*)
+       unit=`expr $i : '...d*\(.\)'`
+       rm -f tty0$unit cua0$unit ttyd$unit
+       mknod ttyd$unit c 28 $unit
+       mknod cua0$unit c 28 `expr $unit + 128`
+       chown uucp.wheel ttyd$unit cua0$unit
+       ;;
+
+tty*)
+       unit=`expr $i : 'tty\(.\)'`
+       rm -f tty0$unit cua0$unit ttyd$unit
+       umask 0
        mknod tty0$unit c 28 $unit
        mknod tty0$unit c 28 $unit
-       chown uucp.wheel tty0$unit
+       umask 77
        ;;
 
 mse*)
        ;;
 
 mse*)