Browse Source

ch* creation on platforms which had them in conf.c but missed them in MAKEDEV

OPENBSD_2_7
niklas 25 years ago
parent
commit
5079ecb19b
2 changed files with 24 additions and 2 deletions
  1. +12
    -1
      src/etc/etc.arc/MAKEDEV
  2. +12
    -1
      src/etc/etc.hppa/MAKEDEV

+ 12
- 1
src/etc/etc.arc/MAKEDEV View File

@ -1,5 +1,5 @@
#!/bin/sh - #!/bin/sh -
# $OpenBSD: MAKEDEV,v 1.33 2000/03/22 07:34:28 niklas Exp $
# $OpenBSD: MAKEDEV,v 1.34 2000/03/22 08:08:52 niklas Exp $
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
# #
@ -40,6 +40,7 @@
# Call units: # Call units:
# #
# Special purpose devices: # Special purpose devices:
# ch* SCSI media changer
# bpf* Berkeley Packet Filter # bpf* Berkeley Packet Filter
# lkm loadable kernel modules interface # lkm loadable kernel modules interface
# tun* network tunnel driver # tun* network tunnel driver
@ -214,6 +215,16 @@ st*)
umask 77 umask 77
;; ;;
ch*)
umask 2
name=ch; chr=36
rm -f $name$unit
mknod ${name}${unit} c $chr $unit
chown root.operator ${name}${unit}
chmod 660 ${name}${unit}
umask 77
;;
bpf*|tun*) bpf*|tun*)
unit=`expr $i : '...\(.*\)'` unit=`expr $i : '...\(.*\)'`
case $i in case $i in


+ 12
- 1
src/etc/etc.hppa/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.2 2000/03/22 07:34:28 niklas Exp $
# $OpenBSD: MAKEDEV,v 1.3 2000/03/22 08:08:53 niklas Exp $
# @(#)MAKEDEV 5.5 (Berkeley) 5/28/91 # @(#)MAKEDEV 5.5 (Berkeley) 5/28/91
# #
# Device "make" file. Valid arguments: # Device "make" file. Valid arguments:
@ -23,6 +23,7 @@
# lpt* IEEE 1284 cetronics iface # lpt* IEEE 1284 cetronics iface
# Call units: # Call units:
# Special purpose devices: # Special purpose devices:
# ch* SCSI media changer
# fd file descriptors # fd file descriptors
# hil HIL input devices # hil HIL input devices
# bpf* packet filter # bpf* packet filter
@ -162,6 +163,16 @@ st*)
umask 77 umask 77
;; ;;
ch*)
umask 2
name=ch; chr=13
rm -f $name$unit
mknod ${name}${unit} c $chr $unit
chown root.operator ${name}${unit}
chmod 660 ${name}${unit}
umask 77
;;
bpf*) bpf*)
unit=${i##*[a-z]} unit=${i##*[a-z]}
rm -f bpf$unit rm -f bpf$unit


Loading…
Cancel
Save