#!/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
#
# Call units:
#
# Special purpose devices:
+# ch* SCSI media changer
# bpf* Berkeley Packet Filter
# lkm loadable kernel modules interface
# tun* network tunnel driver
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
#!/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:
# lpt* IEEE 1284 cetronics iface
# Call units:
# Special purpose devices:
+# ch* SCSI media changer
# fd file descriptors
# hil HIL input devices
# bpf* packet filter
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