|
@ -1,5 +1,5 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# $OpenBSD: MAKEDEV,v 1.10 1996/09/18 22:03:37 deraadt Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.11 1996/11/11 19:43:25 kstailey Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.8.4.1 1996/06/18 00:41:56 cgd Exp $ |
|
|
# |
|
|
# |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
@ -71,6 +71,7 @@ |
|
|
# mouse mouse (provides events, for X11) |
|
|
# mouse mouse (provides events, for X11) |
|
|
# *random inkernel random number generator |
|
|
# *random inkernel random number generator |
|
|
# uk* unknown SCSI |
|
|
# uk* unknown SCSI |
|
|
|
|
|
# ss* SCSI scanners |
|
|
|
|
|
|
|
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin |
|
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin |
|
|
umask 77 |
|
|
umask 77 |
|
@ -85,6 +86,7 @@ all) |
|
|
sh MAKEDEV bpf0 bpf1 bpf2 bpf3 tun0 tun1 tun2 tun3 |
|
|
sh MAKEDEV bpf0 bpf1 bpf2 bpf3 tun0 tun1 tun2 tun3 |
|
|
sh MAKEDEV ttyB0 ttyB1 ttyC0 ttyC1 ttyE0 ttyE1 lkm |
|
|
sh MAKEDEV ttyB0 ttyB1 ttyC0 ttyC1 ttyE0 ttyE1 lkm |
|
|
sh MAKEDEV mmclock kbd mouse lpa0 lpt0 random |
|
|
sh MAKEDEV mmclock kbd mouse lpa0 lpt0 random |
|
|
|
|
|
sh MAKEDEV uk0 uk1 ss0 ss1 |
|
|
sh MAKEDEV local |
|
|
sh MAKEDEV local |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
@ -287,11 +289,11 @@ lpt*|lpa*) |
|
|
|
|
|
|
|
|
random|srandom|urandom|prandom|arandom) |
|
|
random|srandom|urandom|prandom|arandom) |
|
|
rm -f random urandom srandom prandom arandom |
|
|
rm -f random urandom srandom prandom arandom |
|
|
mknod random c 33 0 |
|
|
|
|
|
mknod srandom c 33 1 |
|
|
|
|
|
mknod urandom c 33 2 |
|
|
|
|
|
mknod prandom c 33 3 |
|
|
|
|
|
mknod arandom c 33 4 |
|
|
|
|
|
|
|
|
mknod random c 34 0 |
|
|
|
|
|
mknod srandom c 34 1 |
|
|
|
|
|
mknod urandom c 34 2 |
|
|
|
|
|
mknod prandom c 34 3 |
|
|
|
|
|
mknod arandom c 34 4 |
|
|
chown root.wheel random srandom urandom prandom arandom |
|
|
chown root.wheel random srandom urandom prandom arandom |
|
|
chmod 644 random srandom urandom prandom arandom |
|
|
chmod 644 random srandom urandom prandom arandom |
|
|
;; |
|
|
;; |
|
@ -299,11 +301,22 @@ random|srandom|urandom|prandom|arandom) |
|
|
uk*) |
|
|
uk*) |
|
|
unit=`expr $i : 'uk\(.*\)'` |
|
|
unit=`expr $i : 'uk\(.*\)'` |
|
|
rm -f uk$unit |
|
|
rm -f uk$unit |
|
|
mknod uk$unit c 32 $unit |
|
|
|
|
|
|
|
|
mknod uk$unit c 33 $unit |
|
|
chown root.operator uk$unit |
|
|
chown root.operator uk$unit |
|
|
chmod 640 uk$unit |
|
|
chmod 640 uk$unit |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
ss*) |
|
|
|
|
|
unit=`expr $i : 'ss\(.*\)'` |
|
|
|
|
|
rm -f ss$unit |
|
|
|
|
|
mknod ss$unit c 32 $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 |
|
|