diff options
author | brian <brian@FreeBSD.org> | 1998-08-04 21:45:20 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-08-04 21:45:20 +0000 |
commit | 8f7c17eda2527d37172184da93dcc769d464983e (patch) | |
tree | ebcd43e044c7d48409064d79216c3d8da050c53d /etc/MAKEDEV | |
parent | 1aedee7725db737eabdcf3b08d71e48aa9b168ad (diff) | |
download | FreeBSD-src-8f7c17eda2527d37172184da93dcc769d464983e.zip FreeBSD-src-8f7c17eda2527d37172184da93dcc769d464983e.tar.gz |
dgm uses devices cuaM* and ttyM*
Submitted by: "IBS / Andre Oppermann" <andre@pipeline.ch>
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r-- | etc/MAKEDEV | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 6dce537..3282176 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -107,7 +107,7 @@ # pci PCI configuration-space access from user mode # ipl ipfilter control devices (ipl, ipnat, ipstate, ipauth) # -# $Id: MAKEDEV,v 1.164 1998/07/02 07:39:01 des Exp $ +# $Id: MAKEDEV,v 1.165 1998/07/03 15:43:20 des Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH @@ -878,6 +878,58 @@ cuaD?) umask 77 ;; +ttyM*) + portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f" + modulelist="a b c d" + major=101 + card=`expr $i : 'tty.*\(.\)$'` + for unit in $modulelist + do + moduleminor=`ttyminor $unit` + moduleminor=`expr $moduleminor % 10 \* 16` + modulename=$unit + + for unit in $portlist + do + minor=`ttyminor $unit` + minor=`expr $card \* 65536 + $minor + $moduleminor` + name=$card$modulename$unit + rm -f tty*M$name + mknod ttyM$name c $major $minor + mknod ttyiM$name c $major `expr $minor + 64` + mknod ttylM$name c $major `expr $minor + 128` + chown root.wheel tty*M$name + done + done + ;; + +cuaM?) + umask 7 + portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f" + modulelist="a b c d" + major=101 + card=`expr $i : 'cua.*\(.\)$'` + for unit in $modulelist + do + moduleminor=`ttyminor $unit` + moduleminor=`expr $moduleminor % 10 \* 16` + modulename=$unit + + for unit in $portlist + do + minor=`ttyminor $unit` + minor=`expr $card \* 65536 + $minor + $moduleminor` + name=$card$modulename$unit + rm -f cua*M$name + mknod cuaM$name c $major `expr $minor + 262144` + mknod cuaiM$name c $major `expr $minor + 64 + 262144` + mknod cualM$name c $major `expr $minor + 128 + 262144` + chown uucp.dialer cua*M$name + done + done + umask 77 + ;; + ttyR?) major=81 BOARD=1; MINOR=65536; Rnum=0 |