Browse Source

Updates for SCSI scanner and SCSI unknown devices.

Removed MI *dev_decl() stuff that is now in sys/conf.h
OPENBSD_2_1
kstailey 28 years ago
parent
commit
98c012ceb2
1 changed files with 23 additions and 3 deletions
  1. +23
    -3
      src/etc/etc.sun3/MAKEDEV

+ 23
- 3
src/etc/etc.sun3/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/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 $ # $NetBSD: MAKEDEV,v 1.8 1996/03/03 16:54:17 thorpej Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
@ -59,6 +59,8 @@
# tun* network tunnel driver # tun* network tunnel driver
# rd* RAM-disk # rd* RAM-disk
# *random random data source # *random random data source
# uk* unknown SCSI
# ss* SCSI scanners
# XXX - Keep /usr/etc so SunOS can find chown # XXX - Keep /usr/etc so SunOS can find chown
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/etc 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 case $arg in
all) 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) std)
@ -219,6 +221,25 @@ random|srandom|urandom|prandom|arandom)
chmod 644 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) local)
umask 0 umask 0
sh MAKEDEV.local sh MAKEDEV.local
@ -229,4 +250,3 @@ local)
esac esac
done done

Loading…
Cancel
Save