# pty* set of 16 master and slave pseudo terminals
#
# Special purpose devices:
+# ch* SCSI media changer
# grf* Motherboard bitmapped video.
# kbd Atari keyboard.
# view* generic interface to graphic displays.
umask 77
;;
+ch*)
+ umask 2
+ name=ch; chr=33
+ rm -f $name$unit
+ mknod ${name}${unit} c $chr $unit
+ chown root.operator ${name}${unit}
+ chmod 660 ${name}${unit}
+ umask 77
+ ;;
+
fd*)
umask 2 ; unit=`expr $i : '.*[^0-9]\([0-9]*\)'`
rm -f fd$unit? rfd$unit?
#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.18 2000/03/22 07:34:29 niklas Exp $
+# $OpenBSD: MAKEDEV,v 1.19 2000/03/22 08:34:16 niklas Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
# lpt* Matthias's lp interface
#
# Special purpose devices:
+# ch* SCSI media changer
# fd file descriptors
# bpf* packet filter
# lkm loadable kernel modules interface
umask 77
;;
+ch*)
+ umask 2
+ name=ch; chr=16
+ rm -f $name$unit
+ mknod ${name}${unit} c $chr $unit
+ chown root.operator ${name}${unit}
+ chmod 660 ${name}${unit}
+ umask 77
+ ;;
+
cd*)
umask 2 ; unit=`expr $i : '.*cd\(.*\)'`
case $i in
-/* $OpenBSD: conf.c,v 1.13 1998/09/25 09:20:52 todd Exp $ */
+/* $OpenBSD: conf.c,v 1.14 2000/03/22 08:34:17 niklas Exp $ */
/*
* Copyright (c) 1991 The Regents of the University of California.
cdev_decl(zs);
#include "ss.h"
#include "uk.h"
+#include "ch.h"
#include "grf.h"
cdev_decl(grf);
#include "ite.h"
cdev_random_init(1,random), /* 30: random data source */
cdev_uk_init(NUK,uk), /* 31: unknown SCSI */
cdev_ss_init(NSS,ss), /* 32: SCSI scanner */
- cdev_notdef(), /* 33 */
+ cdev_ch_init(NCH,ch), /* 33: SCSI media changer */
cdev_notdef(), /* 34 */
cdev_notdef(), /* 35 */
cdev_notdef(), /* 36 */
-/* $OpenBSD: conf.c,v 1.11 1998/09/25 09:20:54 todd Exp $ */
+/* $OpenBSD: conf.c,v 1.12 2000/03/22 08:34:16 niklas Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
bdev_decl(sw);
#include "st.h"
#include "cd.h"
+#include "ch.h"
#include "ss.h"
#include "uk.h"
#include "rd.h"
cdev_disk_init(NVND,vnd), /* 13: vnode disk driver */
cdev_bpftun_init(NBPFILTER,bpf),/* 14: Berkeley packet filter */
cdev_bpftun_init(NTUN,tun), /* 15: network tunnel */
- cdev_notdef(), /* 16 */
+ cdev_ch_init(NCH,ch), /* 16: SCSI media changer */
cdev_lpt_init(NLPT, lpt), /* 17: Centronics */
cdev_disk_init(NCCD,ccd), /* 18: concatenated disk driver */
cdev_gen_ipf(NIPF,ipl), /* 19: IP filter log */