summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1996-11-11 23:51:41 +0000
committerkstailey <kstailey@cvs.openbsd.org>1996-11-11 23:51:41 +0000
commit426bc60056563d5f1bc3176b2b5498d97c8a4aa5 (patch)
tree7c70dcb4ec54e2129a250da1631f749a6bdce83b /etc
parent35d60e19ded1f1ada2b002fcb91346320f69a6e5 (diff)
Updates for SCSI scanner and SCSI unknown devices.
Removed MI *dev_decl() stuff that is now in sys/conf.h
Diffstat (limited to 'etc')
-rw-r--r--etc/etc.sun3/MAKEDEV26
1 files changed, 23 insertions, 3 deletions
diff --git a/etc/etc.sun3/MAKEDEV b/etc/etc.sun3/MAKEDEV
index 653bd10c87a..653075ef71e 100644
--- a/etc/etc.sun3/MAKEDEV
+++ b/etc/etc.sun3/MAKEDEV
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.9 1996/09/18 22:03:47 deraadt Exp $
+# $OpenBSD: MAKEDEV,v 1.10 1996/11/11 23:51:38 kstailey Exp $
# $NetBSD: MAKEDEV,v 1.8 1996/03/03 16:54:17 thorpej Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
@@ -59,6 +59,8 @@
# tun* network tunnel driver
# rd* RAM-disk
# *random random data source
+# uk* unknown SCSI
+# ss* SCSI scanners
# XXX - Keep /usr/etc so SunOS can find chown
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/etc
@@ -84,7 +86,7 @@ unit=`expr $arg : '[a-z][a-z]*\([0-9][0-9]*\)'`
case $arg in
all)
- sh MAKEDEV std fd sd0 sd1 sd2 sd3 st0 st1 pty0 random
+ sh MAKEDEV std fd sd0 sd1 sd2 sd3 st0 st1 pty0 random ss0 uk0
;;
std)
@@ -219,6 +221,25 @@ random|srandom|urandom|prandom|arandom)
chmod 644 random srandom urandom prandom arandom
;;
+uk*)
+ unit=`expr $i : 'uk\(.*\)'`
+ rm -f uk$unit
+ mknod uk$unit c 98 $unit
+ chown root.operator uk$unit
+ chmod 640 uk$unit
+ ;;
+
+ss*)
+ unit=`expr $i : 'ss\(.*\)'`
+ rm -f ss$unit
+ mknod ss$unit c 99 $unit
+ chown root.operator ss$unit
+ chmod 440 ss$unit
+# backwards compatibility with older PINTs
+ rm -f scan$unit
+ ln -s ss$unit scan$unit
+ ;;
+
local)
umask 0
sh MAKEDEV.local
@@ -229,4 +250,3 @@ local)
esac
done
-