diff options
author | ache <ache@FreeBSD.org> | 1994-04-03 04:39:54 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-04-03 04:39:54 +0000 |
commit | 776e65c57a3fbe85b31c72a310a20a151c0a479e (patch) | |
tree | e8bbc0b12dd4b9105be7f2698762c5f2e067f668 /etc/MAKEDEV | |
parent | 5721b2f2d544611d87d658edeabee3d5ae1456e2 (diff) | |
download | FreeBSD-src-776e65c57a3fbe85b31c72a310a20a151c0a479e.zip FreeBSD-src-776e65c57a3fbe85b31c72a310a20a151c0a479e.tar.gz |
Fix error in making cua entries for two multiports
(> 10 devices)
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r-- | etc/MAKEDEV | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 7793197..a0a65fd 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -75,7 +75,7 @@ # tw* xten power controller # snd* various sound cards # -# $Id: MAKEDEV,v 1.28 1994/02/19 15:45:13 ache Exp $ +# $Id: MAKEDEV,v 1.29 1994/03/07 00:57:38 rgrimes Exp $ # PATH=/sbin:/bin/:/usr/bin:/usr/sbin: @@ -469,11 +469,19 @@ speaker) chown root.wheel speaker ;; -cua*|ttyd*) - unit=`expr $i : '...d*\(.\)'` +cua0?|cua?|ttyd?) + unit=`expr $i : '...[d0]*\(.\)$'` rm -f tty0$unit cua0$unit ttyd$unit - mknod ttyd$unit c 28 $unit - mknod cua0$unit c 28 `expr $unit + 128` + case $unit in + [0-9]) m=$unit;; + a) m=10;; b) m=11;; c) m=12;; d) m=13;; e) m=14;; f) m=15;; g) m=16;; + h) m=17;; i) m=18;; j) m=19;; k) m=20;; l) m=21;; m) m=22;; n) m=23;; + o) m=24;; p) m=25;; q) m=26;; r) m=27;; s) m=28;; t) m=29;; u) m=30;; + v) m=31;; w) m=32;; x) m=33;; y) m=34;; z) m=35;; + *) echo not enough minor numbers, add manually ;; + esac + mknod ttyd$unit c 28 $m + mknod cua0$unit c 28 `expr $m + 128` chown uucp.wheel ttyd$unit cua0$unit ;; |