diff options
author | peter <peter@FreeBSD.org> | 1995-09-22 20:42:11 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-09-22 20:42:11 +0000 |
commit | 2686702724f1557a141dc2abcce39dcb6cfbd764 (patch) | |
tree | cbb24fbdefb9eae0d5c9c3e56f6bed9808cd0df4 /etc/MAKEDEV | |
parent | cd0bc69e2fdd7da07a0ea1b0778e950cc972d08b (diff) | |
download | FreeBSD-src-2686702724f1557a141dc2abcce39dcb6cfbd764.zip FreeBSD-src-2686702724f1557a141dc2abcce39dcb6cfbd764.tar.gz |
Update the /dev naming for the Specialix driver.. I've changed it to do
the same sort of thing as the Digiboard driver (ttyD*), as creating 96
/dev entries one by one was very painful.
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r-- | etc/MAKEDEV | 57 |
1 files changed, 34 insertions, 23 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 65c1583..6770479 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -60,7 +60,7 @@ # Terminal ports: # tty* general purpose serial ports # cua* dialout serial ports -# ttyA* Specialix SI/XIO dialin ports +# ttyA* Specialix SI/XIO dialin ports ('*' = number of devices) # cuaA* Specialix SI/XIO dialout ports # ttyD* Digiboard - 16 dialin ports # cuaD* Digiboard - 16 dialout ports @@ -93,7 +93,7 @@ # isdn* ISDN devices # labpc* National Instrument's Lab-PC and LAB-PC+ # -# $Id: MAKEDEV,v 1.104 1995/09/03 20:40:16 jkh Exp $ +# $Id: MAKEDEV,v 1.105 1995/09/16 23:15:01 ats Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin: @@ -756,32 +756,43 @@ ttym?) # Specialix SI/XIO. # Note: these are 'base 1' to match the numbers on the panels, and to match # the manual that comes with the system. -ttyA?) - unit=`expr $i : 'tty.*\(.\)$'` - rm -f tty*A$unit - m=`ttyminor $unit` - mknod ttyA$unit c 68 `expr $m - 1` - mknod ttyiA$unit c 68 `expr $m + 65536 - 1` - mknod ttylA$unit c 68 `expr $m + 131072 - 1` - chown root.wheel ttyA$unit - ;; -cuaA?) - umask 7 - unit=`expr $i : 'cua.*\(.\)$'` - rm -f cuaA$unit - m=`ttyminor $unit` - mknod cuaA$unit c 68 `expr $m + 128 - 1` - chown uucp.dialer cuaA$unit - umask 77 - ;; - -# the user mode process "gets" to the card via this.. -si_control) +ttyA*) + major=68 + nports=`expr $i : 'ttyA\(.*\)$'` + port=1 + while [ $port -le $nports ]; do + minor=`expr $port - 1` + name=`expr $port + 1000 | cut -c 3-4` + rm -f tty*A$name + mknod ttyA$name c $major $minor + chown root.wheel ttyA$name + mknod ttyiA$name c $major `expr $minor + 65536` + chown root.wheel ttyiA$name + mknod ttylA$name c $major `expr $minor + 131072` + chown root.wheel ttylA$name + port=`expr $port + 1` + done + # For the user-mode control program, 'sicontrol' rm -f si_control mknod si_control c 68 262144 chmod 600 si_control chown root.wheel si_control ;; +cuaA*) + umask 7 + major=68 + nports=`expr $i : 'cuaA\(.*\)$'` + port=1 + while [ $port -le $nports ]; do + minor=`expr $port - 1` + name=`expr $port + 1000 | cut -c 3-4` + rm -f cuaA$name + mknod cuaA$name c $major `expr $minor + 128` + chown uucp.dialer cuaA$name + port=`expr $port + 1` + done + umask 77 + ;; # Digiboard PC/?? 16 port card. # The current scheme of minor numbering is: |