|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/sh - |
|
|
|
# |
|
|
|
# $OpenBSD: MAKEDEV,v 1.11 1996/09/18 22:03:44 deraadt Exp $ |
|
|
|
# $OpenBSD: MAKEDEV,v 1.12 1996/11/11 20:34:59 kstailey Exp $ |
|
|
|
# |
|
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
|
# All rights reserved. |
|
|
@ -33,7 +33,7 @@ |
|
|
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
|
|
# SUCH DAMAGE. |
|
|
|
# |
|
|
|
# $Id: MAKEDEV,v 1.11 1996/09/18 22:03:44 deraadt Exp $ |
|
|
|
# $Id: MAKEDEV,v 1.12 1996/11/11 20:34:59 kstailey Exp $ |
|
|
|
# |
|
|
|
# Device "make" file. Valid arguments: |
|
|
|
# all makes all known devices, including local devices, |
|
|
@ -68,6 +68,8 @@ |
|
|
|
# bpf* Berkeley Packet Filter |
|
|
|
# *random inkernel random number generator |
|
|
|
# tun* network tunnel driver |
|
|
|
# uk* unknown SCSI |
|
|
|
# ss* SCSI scanners |
|
|
|
# |
|
|
|
# Machine specific devices: |
|
|
|
# sram static ram available on some models. |
|
|
@ -93,6 +95,8 @@ all) |
|
|
|
sh MAKEDEV sram0 nvram0 flash0 vmel0 vmes0 |
|
|
|
#sh MAKEDEV lp0 lptwo0 |
|
|
|
sh MAKEDEV random |
|
|
|
sh MAKEDEV uk0 uk1 |
|
|
|
sh MAKEDEV ss0 |
|
|
|
;; |
|
|
|
|
|
|
|
std) |
|
|
@ -361,6 +365,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 41 $unit |
|
|
|
chown root.operator uk$unit |
|
|
|
chmod 640 uk$unit |
|
|
|
;; |
|
|
|
|
|
|
|
ss*) |
|
|
|
unit=`expr $i : 'ss\(.*\)'` |
|
|
|
rm -f ss$unit |
|
|
|
mknod ss$unit c 42 $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 |
|
|
|