From 5079ecb19be04c427e4d10f24cd109f55b54a298 Mon Sep 17 00:00:00 2001 From: niklas <> Date: Wed, 22 Mar 2000 08:08:53 +0000 Subject: [PATCH] ch* creation on platforms which had them in conf.c but missed them in MAKEDEV --- src/etc/etc.arc/MAKEDEV | 13 ++++++++++++- src/etc/etc.hppa/MAKEDEV | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/etc/etc.arc/MAKEDEV b/src/etc/etc.arc/MAKEDEV index 7a75ef8f..4881e9a6 100644 --- a/src/etc/etc.arc/MAKEDEV +++ b/src/etc/etc.arc/MAKEDEV @@ -1,5 +1,5 @@ #!/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 # @@ -40,6 +40,7 @@ # Call units: # # Special purpose devices: +# ch* SCSI media changer # bpf* Berkeley Packet Filter # lkm loadable kernel modules interface # tun* network tunnel driver @@ -214,6 +215,16 @@ st*) 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*) unit=`expr $i : '...\(.*\)'` case $i in diff --git a/src/etc/etc.hppa/MAKEDEV b/src/etc/etc.hppa/MAKEDEV index eeffae7a..377202ae 100644 --- a/src/etc/etc.hppa/MAKEDEV +++ b/src/etc/etc.hppa/MAKEDEV @@ -1,6 +1,6 @@ #!/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 # # Device "make" file. Valid arguments: @@ -23,6 +23,7 @@ # lpt* IEEE 1284 cetronics iface # Call units: # Special purpose devices: +# ch* SCSI media changer # fd file descriptors # hil HIL input devices # bpf* packet filter @@ -162,6 +163,16 @@ st*) 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*) unit=${i##*[a-z]} rm -f bpf$unit