aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>1999-02-05 08:21:51 +0000
committerMatt Jacob <mjacob@FreeBSD.org>1999-02-05 08:21:51 +0000
commitfbeb78d8495768081707aea29b3f53359af43ac2 (patch)
tree4f55e86880c58d7432a8cc26b4bf1394ca721122
parentc0326be4e1345e7254c2f31e231d5a5bf0e3aba6 (diff)
Notes
-rw-r--r--etc/etc.alpha/MAKEDEV18
1 files changed, 13 insertions, 5 deletions
diff --git a/etc/etc.alpha/MAKEDEV b/etc/etc.alpha/MAKEDEV
index edfc0656c9bc..60d2d6151eee 100644
--- a/etc/etc.alpha/MAKEDEV
+++ b/etc/etc.alpha/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.2 1998/08/31 08:57:56 dfr Exp $
+# $Id: MAKEDEV,v 1.4 1999/02/04 20:35:07 mjacob Exp $
# from etc.i386 MAKEDEV,v 1.171 1998/09/15 10:21:35 gibbs Exp
#
@@ -596,12 +596,20 @@ sa*)
chr=14
case $unit in
- 0|1|2|3|4|5|6)
+ [0-9]|[1-9][0-9]|[1-9][0-9][0-9])
+ if [ $unit -gt 15 ]; then
+ mult=65536
+ else
+ mult=16
+ fi
+ rm -f rsa${unit} nrsa${unit} ersa${unit} rsa${unit}.ctl
+ mknod rsa${unit}.ctl c $chr `expr $unit '*' $mult + 536870912`
for mode in 0 1 2 3
do
- mknod rsa${unit}.${mode} c $chr `expr $unit '*' 16 + $mode '*' 4 + 0`
- mknod nrsa${unit}.${mode} c $chr `expr $unit '*' 16 + $mode '*' 4 + 1`
- mknod ersa${unit}.${mode} c $chr `expr $unit '*' 16 + $mode '*' 4 + 2`
+ rm -f rsa${unit}.${mode} nrsa${unit}.${mode} ersa${unit}.${mode}
+ mknod rsa${unit}.${mode} c $chr `expr $unit '*' $mult + $mode '*' 4 + 0`
+ mknod nrsa${unit}.${mode} c $chr `expr $unit '*' $mult + $mode '*' 4 + 1`
+ mknod ersa${unit}.${mode} c $chr `expr $unit '*' $mult + $mode '*' 4 + 2`
chgrp operator rsa${unit}.${mode}\
nrsa${unit}.${mode} \
ersa${unit}.${mode}