diff options
-rw-r--r-- | etc/MAKEDEV.mi | 61 | ||||
-rw-r--r-- | etc/etc.amiga/MAKEDEV.md | 4 | ||||
-rw-r--r-- | etc/etc.hp300/MAKEDEV.md | 193 | ||||
-rw-r--r-- | etc/etc.mac68k/MAKEDEV.md | 4 | ||||
-rw-r--r-- | etc/etc.mvme68k/MAKEDEV.md | 503 | ||||
-rw-r--r-- | etc/etc.mvme88k/MAKEDEV.md | 361 | ||||
-rw-r--r-- | etc/etc.mvmeppc/MAKEDEV.md | 522 | ||||
-rw-r--r-- | etc/etc.sparc64/MAKEDEV.md | 6 | ||||
-rw-r--r-- | etc/etc.vax/MAKEDEV.md | 139 |
9 files changed, 1771 insertions, 22 deletions
diff --git a/etc/MAKEDEV.mi b/etc/MAKEDEV.mi index df0d197807f..f4983b0ff4e 100644 --- a/etc/MAKEDEV.mi +++ b/etc/MAKEDEV.mi @@ -1,6 +1,6 @@ include(MAKEDEV.sub)dnl dnl -vers(a,{-$OpenBSD: MAKEDEV.mi,v 1.22 2002/01/23 08:09:30 todd Exp $-})dnl +vers(a,{-$OpenBSD: MAKEDEV.mi,v 1.23 2002/02/08 20:26:36 todd Exp $-})dnl dnl divert(1)dnl {-#-} @@ -114,20 +114,24 @@ target(all,mcd,0)dnl target(all,std)dnl target(all,vnd,0,1,2,3)dnl target(all,ccd,0,1,2,3)dnl -target(all,wd,0,1,2,3)dnl target(all,raid,0,1,2,3)dnl -target(all,xy,0,1,2,3)dnl -target(all,xd,0,1,2,3)dnl -target(all,rz,0,1,2,3,4)dnl +target(all,hd,0,1,2,3,4)dnl target(all,rd,0)dnl -target(all,hp,0,1,2,3)dnl +target(all,rz,0,1,2,3,4)dnl target(all,hk,0,1,2,3)dnl -target(all,up,0,1,2,3)dnl +target(all,hp,0,1,2,3)dnl +target(all,ht,0)dnl target(all,ra,0,1,2,3)dnl target(all,rb,0,1,2,3)dnl -target(all,rx,0,1)dnl target(all,rl,0,1,2,3)dnl -target(all,hd,0,1,2,3,4)dnl +target(all,rx,0,1)dnl +target(all,tm,0)dnl +target(all,ts,0)dnl +target(all,up,0,1,2,3)dnl +target(all,ut,0)dnl +target(all,wd,0,1,2,3)dnl +target(all,xy,0,1,2,3)dnl +target(all,xd,0,1,2,3)dnl twrget(all,flo,fd,0,0B,0C,0D,0E,0F,0G,0H)dnl twrget(all,flo,fd,1,1B,1C,1D,1E,1F,1G,1H)dnl twrget(all,aflo,fd,0,1,2,3)dnl @@ -184,8 +188,8 @@ twrget(all,csx,cgsix,0)dnl twrget(all,ceg,cgeight,0)dnl twrget(all,cfo,cgfourteen,0)dnl target(all,tcx,0)dnl -twrget(all,mac_grf,grf,0,1,2,3)dnl -target(all,grf,0,1,2,3,4,5,6)dnl +twrget(all,grf_mac,grf,0,1,2,3)dnl +twrget(all,grf_amiga,grf,0,1,2,3,4,5,6)dnl target(all,par,0)dnl twrget(all,amouse,mouse,0,1)dnl twrget(all,akbd,kbd)dnl @@ -227,7 +231,7 @@ std) dnl target(usb,usb,0,1)dnl target(usb,urio,0)dnl -target(usb,uscanner,0)dnl +twrget(usb,uscan,uscanner,0)dnl target(usb,uhid,0,1,2,3)dnl target(usb,ulpt,0,1)dnl target(usb,ugen,0,1)dnl @@ -280,6 +284,10 @@ _mkdev(st_hp300,ct*|mt*|st*, __devitem(st_hp300,st*,Exabyte tape)dnl __devitem(ct,ct*,HP300 HP-IB cartridge tape)dnl __devitem(mt,mt*,(Magnetic) 9-track reel tape)dnl +__devitem(ht,ht*,massbus tm03 & tu??)dnl +__devitem(tm,tm*,unibus tm11 & te10 emulations (e.g. Emulex tc-11))dnl +__devitem(ts,ts*,unibus ts11)dnl +__devitem(ut,ut*,unibus tu45 emulations (e.g.si 9700))dnl __devtitle(dis,Disks)dnl __devitem(rz,rz*,SCSI disks)dnl __devitem(sd,{-sd*-},SCSI disks{-,-} includes flopticals)dnl @@ -329,6 +337,28 @@ target(ramd,wd,0,1,2,3)dnl target(ramd,cd,0,1)dnl target(ramd,st,0,1)dnl target(ramd,bpf,0)dnl +twrget(all,s64_tzs,tty,a,b,c,d)dnl +twrget(all,s64_czs,cua,a,b,c,d)dnl +__devitem(s64_tzs,tty[a-z]*,Zilog 8530 Serial Port)dnl +__devitem(s64_czs,cua[a-z]*,Zilog 8530 Serial Port)dnl +_mkdev(s64_tzs,{-tty[a-z]-},{-u=${i#tty*} + case $u in + a) n=0 ;; + b) n=1 ;; + c) n=2 ;; + d) n=3 ;; + *) echo unknown tty device $i ;; + esac + M tty$u c major_s64_tzs_c $n 660 dialer uucp-})dnl +_mkdev(s64_czs,cua[a-z],{-u=${i#cua*} + case $u in + a) n=0 ;; + b) n=1 ;; + c) n=2 ;; + d) n=3 ;; + *) echo unknown cua device $i ;; + esac + M cua$u c major_s64_czs_c Add($n,128) 660 dialer uucp-})dnl -})dnl ifelse(MACHINE,i386,{-dnl target(ramd,tty0,0,1,2,3)dnl @@ -672,14 +702,14 @@ _mkdev(music,music*,{-M music$U c major_music_c $U MKlist="$MKlist;[ -e music ] || ln -s music$U music" MKlist="$MKlist;[ -e sequencer ] || ln -s sequencer$U sequencer"-})dnl __devitem(radio,radio*,FM tuner device)dnl -_mkdev(radio,radio*,{-M radio$U c major_radio_c $U 644 +_mkdev(radio,radio*,{-M radio$U c major_radio_c $U MKlist="$MKlist;[ -e radio ] || ln -s radio$U radio"-})dnl __devitem(fdesc,fd,makes fd/* for the fdescfs)dnl _mkdev(fdesc,fd,{-RMlist="mkdir -p fd;$RMlist" n=0 while [ $n -lt 64 ];do M fd/$n c major_fdesc_c $n;n=Add($n,1);done MKlist="$MKlist;chmod 555 fd"-})dnl __devtitle(graph,Graphics devices)dnl -__devitem(mac_grf,grf*,{-custom chip (grf0){-,-} Retina Z2/Z3 (grf1/grf2){-,-} +__devitem(grf_mac,grf*,{-custom chip (grf0){-,-} Retina Z2/Z3 (grf1/grf2){-,-} {-#-} Cirrus boards (grf3){-,-} A2410 (grf4) video or {-#-} CyberVision 64 (grf5)-})dnl __devitem(grf_amiga,grf*,{-Motherboard bitmapped video.-})dnl @@ -792,7 +822,7 @@ __devitem(fb,fb*,framebuffer device)dnl __devitem(bktr,bktr*,video capturing)dnl _mcdev(bktr,bktr*,bktr,{-major_bktr_c-},644)dnl __devitem(tuner,tuner*,tuner device)dnl -_mkdev(tuner,tuner*,{-M tuner$U c major_tuner_c Add(Mult($U,2),16) 644-},644)dnl +_mkdev(tuner,tuner*,{-M tuner$U c major_bktr_c Add(Mult($U,2),16) 644-},644)dnl __devitem(pci,pci,PCI bus device)dnl _mkdev(pci,pci,{-M pci c major_pci_c 0 664-},664)dnl __devitem(adb,adb,Apple Desktop bus event interface)dnl @@ -986,6 +1016,7 @@ fi divert(3)dnl dnl R() { +[ "$DEBUG" ] && set -x for i in "$@" do U=`unt $i` diff --git a/etc/etc.amiga/MAKEDEV.md b/etc/etc.amiga/MAKEDEV.md index 0a79a64549d..d49987abf3f 100644 --- a/etc/etc.amiga/MAKEDEV.md +++ b/etc/etc.amiga/MAKEDEV.md @@ -1,5 +1,5 @@ vers(__file__, - {-$OpenBSD: MAKEDEV.md,v 1.2 2002/01/23 07:53:01 todd Exp $-}, + {-$OpenBSD: MAKEDEV.md,v 1.3 2002/02/08 20:26:36 todd Exp $-}, etc.MACHINE)dnl dnl dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> @@ -55,7 +55,7 @@ _DEV(par) _DEV(lpt,33) _DEV(lpa) _TITLE(spec) -_DEV(grf) +_DEV(grf_amiga,10) _DEV(kbd,14) _DEV(joy,43) _DEV(akbd,14) diff --git a/etc/etc.hp300/MAKEDEV.md b/etc/etc.hp300/MAKEDEV.md new file mode 100644 index 00000000000..767698c98aa --- /dev/null +++ b/etc/etc.hp300/MAKEDEV.md @@ -0,0 +1,193 @@ +vers(__file__, + {-$OpenBSD: MAKEDEV.md,v 1.1 2002/02/08 20:26:36 todd Exp $-}, +etc.MACHINE)dnl +dnl +dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> +dnl All rights reserved. +dnl +dnl Redistribution and use in source and binary forms, with or without +dnl modification, are permitted provided that the following conditions +dnl are met: +dnl 1. Redistributions of source code must retain the above copyright +dnl notice, this list of conditions and the following disclaimer. +dnl 2. The name of the author may not be used to endorse or promote products +dnl derived from this software without specific prior written permission. +dnl +dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +dnl AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +dnl THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +dnl EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +dnl PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +dnl OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +dnl WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +dnl ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +dnl +dnl +_TITLE(make) +_DEV(all) +_DEV(std) +_DEV(local) +_TITLE(tap) +_DEV(ct,7,0) +_DEV(mt,16,1) +_DEV(st_hp300,20,6) +_TITLE(dis) +_DEV(ccd,17,5) +_DEV(hd,9,2) +_DEV(sd,8,4) +_DEV(vnd,19,6) +_DEV(rd,34,8) +_TITLE(termp) +_DEV(dca) +_DEV(dcm) +_DEV(apci) +_TITLE(pty) +_DEV(tty,4) +_DEV(pty,5) +_TITLE(prn) +_DEV(ppi,11) +_TITLE(call) +_TITLE(spec) +_DEV(fdesc,21) +_DEV(grf_hp300) +_DEV(ite) +_DEV(hil,) +_DEV(bpf,22) +_DEV(tun,23) +_DEV(pf,33) +_DEV(lkm,24) +_DEV(rnd,32) +_DEV(xfs,51) +_DEV(altq,52) +dnl +divert(7)dnl +dnl +raminst) + _recurse std ct0 ct1 st0 st1 hd0 hd1 hd2 hd3 hd4 + _recurse sd0 sd1 sd2 sd3 sd4 rd0 rd1 pty0 + _recurse hil grf0 apci0 ite0 dca0 dcm0 dcm1 + _recurse bpf0 bpf1 tun0 tun1 lkm random + ;; + +_std(1,2,36,3,6) + ;; + +dca*) + case $U in + 0|1|2|3) + M tty$U c 12 $U 660 dialer uucp + M cua$U c 12 Add($U,128) 660 dialer uucp + ;; + *) + echo bad unit for dca in: $i + ;; + esac + ;; + +dcm*) + case $U in + 0|1|2|3) + u="$(( $U * 4 ))" + i=0 + while [ $i -lt 4 ] + do + n="$(( $u + $i ))" + ext=`hex $n` + + M tty0${ext} c 15 ${n} 660 dialer uucp + M cua0${ext} c 15 "$(( $n + 128 ))" 660 dialer uucp + + i="$(( $i + 1 ))" + done + ;; + *) + echo bad unit for dcm in: $i + ;; + esac + ;; + +apci*) + # There exists only one Frodo ASIC per HP9000/400 SPU. + case $U in + 0) + for i in 0 1 2 3; do + M ttya${i} c 35 ${i} 660 dialer uucp + M cuaa${i} c 35 Add($i,128) 660 dialer uucp + done + ;; + *) + echo bad unit for apci in: $i + ;; + esac + ;; + +ppi*) + case $U in + 0|1|2|3) + M ppi$U c MACHINE_ppi_maj $U 600 + ;; + *) + echo bad unit for ppi in: $i + ;; + esac + ;; + +ite*) + case $U in + 0|1|2|3) + M ttye$U c 13 $U 600 + ;; + *) + echo bad unit for ite in: $i + ;; + esac + ;; + +grf*) + case $U in + 0|1|2|3) + M grf$U c 10 $U +# echo "grf$U: use MAKEDEV.hpux to make HP-UX names for device" + ;; + *) + echo bad unit for grf in: $i + ;; + esac + ;; + +hil*) + for U in 0 1 2 3 4 5 6 7 + do + M hil$U c 14 $U + if [ -f /usr/sbin/hilinfo ] + then + case `/usr/sbin/hilinfo -t hil$U` in + mouse) + if [ ! -f locator ] + then + MKlist="$MKlist;ln hil$U locator" + RMlist="$RMlist locator" + fi + ;; + keyboard) + if [ ! -f keyboard ] + then + MKlist="$MKlist;ln hil$U keyboard" + RMlist="$RMlist keyboard" + fi + ;; + *) + ;; + esac + fi + done + if [ ! -f /usr/sbin/hilinfo ] + then + MKlist="$MKlist;ln hil1 keyboard" + MKlist="$MKlist;ln hil3 locator" + RMlist="$RMlist keyboard locator" + fi +# echo "hil: use MAKEDEV.hpux to make HP-UX names for devices" + ;; diff --git a/etc/etc.mac68k/MAKEDEV.md b/etc/etc.mac68k/MAKEDEV.md index 8c8d868d500..9c496131397 100644 --- a/etc/etc.mac68k/MAKEDEV.md +++ b/etc/etc.mac68k/MAKEDEV.md @@ -1,5 +1,5 @@ vers(__file__, - {-$OpenBSD: MAKEDEV.md,v 1.2 2002/01/23 07:53:01 todd Exp $-}, + {-$OpenBSD: MAKEDEV.md,v 1.3 2002/02/08 20:26:36 todd Exp $-}, etc.MACHINE)dnl dnl dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> @@ -44,7 +44,7 @@ _TITLE(pty) _DEV(tty,4) _DEV(pty,5) _TITLE(graph) -_DEV(mac_grf,10) +_DEV(grf_mac,10) _TITLE(spec) _DEV(bpf,22) _DEV(tun,24) diff --git a/etc/etc.mvme68k/MAKEDEV.md b/etc/etc.mvme68k/MAKEDEV.md new file mode 100644 index 00000000000..b7896a77dea --- /dev/null +++ b/etc/etc.mvme68k/MAKEDEV.md @@ -0,0 +1,503 @@ +#!/bin/sh - +# +# $OpenBSD: MAKEDEV.md,v 1.1 2002/02/08 20:26:36 todd Exp $ +# +# Copyright (c) 1990 The Regents of the University of California. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. All advertising materials mentioning features or use of this software +# must display the following acknowledgement: +# This product includes software developed by the University of +# California, Berkeley and its contributors. +# 4. Neither the name of the University nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# +# $OpenBSD: MAKEDEV.md,v 1.1 2002/02/08 20:26:36 todd Exp $ +# +# Device "make" file. Valid arguments: +# all makes all known devices, including local devices, +# Tries to make the ``standard'' number of each. +# fd makes fd/* for the fdescfs. +# std standard devices +# local configuration specific devices +# +# Tapes: +# st* SCSI tapes +# +# Disks: +# fd* Floppy disks +# sd* SCSI disks, includes flopticals +# cd* SCSI cdrom discs +# vnd* "file" pseudo-disks +# ccd* concatenated disk driver +# +# Terminal ports: +# ttya,b,c,d standard serial port. +# tty0? cl-cd serial ports +# ttyw? willowglen vme cl-cd serial ports +# +# Pseudo terminals: +# pty* set of 16 master and slave pseudo terminals +# +# Printers: +# lp0 MVME147 parallel port +# lptwo0 MVME16x parallel port +# +# Special purpose devices: +# lkm loadable kernel modules interface. +# bpf* Berkeley Packet Filter +# *random inkernel random number generator +# tun* network tunnel driver +# uk* unknown SCSI +# ss* SCSI scanners +# altq ALTQ control interface +# +# Machine specific devices: +# sram static ram available on some models. +# nvram non-volatile ram +# flash flash ram available on some models. +# bugtty (depricated) +# vmel 32-bit vme interface +# vmes 16-bit vme interface + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +umask 77 +for i +do +case $i in +all) + sh MAKEDEV std fd st0 ttya ttyb ttyc ttyd + sh MAKEDEV tty00 tty01 tty02 tty03 + sh MAKEDEV ttyw0 + sh MAKEDEV sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9 + sh MAKEDEV vnd0 vnd1 pty0 cd0 + sh MAKEDEV bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9 + #sh MAKEDEV ccd0 ccd1 ccd2 ccd3 + sh MAKEDEV pf tun0 tun1 lkm local + sh MAKEDEV sram0 nvram0 flash0 vmel0 vmes0 + #sh MAKEDEV lp0 lptwo0 + sh MAKEDEV random + sh MAKEDEV uk0 uk1 + sh MAKEDEV ss0 altq + ;; + +std) + rm -f console drum kmem mem null zero tty + rm -f klog stdin stdout stderr ksyms + mknod console c 0 0 + mknod drum c 3 0 ; chmod 640 drum ; chown root.kmem drum + mknod kmem c 2 1 ; chmod 640 kmem ; chown root.kmem kmem + mknod mem c 2 0 ; chmod 640 mem ; chown root.kmem mem + mknod zero c 2 12 ; chmod 666 zero + mknod null c 2 2 ; chmod 666 null + mknod tty c 1 0 ; chmod 666 tty + mknod klog c 6 0 ; chmod 600 klog + mknod stdin c 21 0 ; chmod 666 stdin + mknod stdout c 21 1 ; chmod 666 stdout + mknod stderr c 21 2 ; chmod 666 stderr + mknod ksyms c 43 0 ; chmod 640 ksyms ; chown root.kmem ksyms + ;; + +raminst) + sh MAKEDEV std fd st0 ttya rd0 + sh MAKEDEV tty00 tty01 tty02 tty03 + sh MAKEDEV sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9 + sh MAKEDEV pty0 + #sh MAKEDEV ccd0 ccd1 ccd2 ccd3 + sh MAKEDEV tun0 tun1 lkm local + sh MAKEDEV sram0 nvram0 flash0 vmel0 vmes0 + #sh MAKEDEV lp0 lptwo0 + sh MAKEDEV random + sh MAKEDEV uk0 uk1 + sh MAKEDEV ss0 + ;; + +fd) + rm -f fd/* + mkdir fd > /dev/null 2>&1 + (cd fd && eval `echo "" | awk ' BEGIN { \ + for (i = 0; i < 64; i++) \ + printf("mknod %d c 21 %d;", i, i)}'`) + chown -R root.wheel fd + chmod 555 fd + chmod 666 fd/* + ;; + +st*) + umask 2 ; unit=`expr $i : '..\(.*\)'` + case $i in + st*) name=st; blk=7; chr=20;; + esac + rm -f $name$unit n$name$unit e$name$unit en$name$unit \ + r$name$unit nr$name$unit er$name$unit enr$name$unit + case $unit in + 0|1|2|3|4|5|6) + mknod ${name}${unit} b $blk `expr $unit '*' 16 + 0` + mknod n${name}${unit} b $blk `expr $unit '*' 16 + 1` + mknod e${name}${unit} b $blk `expr $unit '*' 16 + 2` + mknod en${name}${unit} b $blk `expr $unit '*' 16 + 3` + mknod r${name}${unit} c $chr `expr $unit '*' 16 + 0` + mknod nr${name}${unit} c $chr `expr $unit '*' 16 + 1` + mknod er${name}${unit} c $chr `expr $unit '*' 16 + 2` + mknod enr${name}${unit} c $chr `expr $unit '*' 16 + 3` + chown root.operator ${name}${unit} n${name}${unit} \ + e$name$unit en$name$unit \ + r${name}${unit} nr${name}${unit} \ + er${name}${unit} enr${name}${unit} + chmod 660 ${name}${unit} n${name}${unit} \ + e$name$unit en$name$unit \ + r${name}${unit} nr${name}${unit} \ + er${name}${unit} enr${name}${unit} + ;; + *) + echo bad unit for tape in: $i + ;; + esac + umask 77 + ;; + +sd*|ccd*) + umask 2 ; unit=`expr $i : '.*[^0-9]\([0-9]*\)'` + case $i in + sd*) name=sd; blk=4; chr=8;; + #ccd*) name=ccd; blk=5; chr=7;; + esac + rm -f $name$unit? r$name$unit? + case $unit in + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) + mknod ${name}${unit}c b $blk `expr $unit '*' 16 + 2` + mknod r${name}${unit}c c $chr `expr $unit '*' 16 + 2` + mknod ${name}${unit}a b $blk `expr $unit '*' 16 + 0` + mknod ${name}${unit}b b $blk `expr $unit '*' 16 + 1` + mknod ${name}${unit}d b $blk `expr $unit '*' 16 + 3` + mknod ${name}${unit}e b $blk `expr $unit '*' 16 + 4` + mknod ${name}${unit}f b $blk `expr $unit '*' 16 + 5` + mknod ${name}${unit}g b $blk `expr $unit '*' 16 + 6` + mknod ${name}${unit}h b $blk `expr $unit '*' 16 + 7` + mknod ${name}${unit}i b $blk `expr $unit '*' 16 + 8` + mknod ${name}${unit}j b $blk `expr $unit '*' 16 + 9` + mknod ${name}${unit}k b $blk `expr $unit '*' 16 + 10` + mknod ${name}${unit}l b $blk `expr $unit '*' 16 + 11` + mknod ${name}${unit}m b $blk `expr $unit '*' 16 + 12` + mknod ${name}${unit}n b $blk `expr $unit '*' 16 + 13` + mknod ${name}${unit}o b $blk `expr $unit '*' 16 + 14` + mknod ${name}${unit}p b $blk `expr $unit '*' 16 + 15` + mknod r${name}${unit}a c $chr `expr $unit '*' 16 + 0` + mknod r${name}${unit}b c $chr `expr $unit '*' 16 + 1` + mknod r${name}${unit}d c $chr `expr $unit '*' 16 + 3` + mknod r${name}${unit}e c $chr `expr $unit '*' 16 + 4` + mknod r${name}${unit}f c $chr `expr $unit '*' 16 + 5` + mknod r${name}${unit}g c $chr `expr $unit '*' 16 + 6` + mknod r${name}${unit}h c $chr `expr $unit '*' 16 + 7` + mknod r${name}${unit}i c $chr `expr $unit '*' 16 + 8` + mknod r${name}${unit}j c $chr `expr $unit '*' 16 + 9` + mknod r${name}${unit}k c $chr `expr $unit '*' 16 + 10` + mknod r${name}${unit}l c $chr `expr $unit '*' 16 + 11` + mknod r${name}${unit}m c $chr `expr $unit '*' 16 + 12` + mknod r${name}${unit}n c $chr `expr $unit '*' 16 + 13` + mknod r${name}${unit}o c $chr `expr $unit '*' 16 + 14` + mknod r${name}${unit}p c $chr `expr $unit '*' 16 + 15` + chown root.operator ${name}${unit}[a-p] r${name}${unit}[a-p] + chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p] + ;; + *) + echo bad unit for disk in: $i + ;; + esac + umask 77 + ;; + +vnd*) + umask 2 ; unit=`expr $i : 'vnd\(.*\)'` + for name in vnd svnd; do + blk=6; chr=19; + case $name in + vnd) off=0;; + svnd) off=128;; + esac + rm -f $name$unit? r$name$unit? + mknod ${name}${unit}a b $blk `expr $unit '*' 16 + $off + 0` + mknod ${name}${unit}b b $blk `expr $unit '*' 16 + $off + 1` + mknod ${name}${unit}c b $blk `expr $unit '*' 16 + $off + 2` + mknod ${name}${unit}d b $blk `expr $unit '*' 16 + $off + 3` + mknod ${name}${unit}e b $blk `expr $unit '*' 16 + $off + 4` + mknod ${name}${unit}f b $blk `expr $unit '*' 16 + $off + 5` + mknod ${name}${unit}g b $blk `expr $unit '*' 16 + $off + 6` + mknod ${name}${unit}h b $blk `expr $unit '*' 16 + $off + 7` + mknod ${name}${unit}i b $blk `expr $unit '*' 16 + $off + 8` + mknod ${name}${unit}j b $blk `expr $unit '*' 16 + $off + 9` + mknod ${name}${unit}k b $blk `expr $unit '*' 16 + $off + 10` + mknod ${name}${unit}l b $blk `expr $unit '*' 16 + $off + 11` + mknod ${name}${unit}m b $blk `expr $unit '*' 16 + $off + 12` + mknod ${name}${unit}n b $blk `expr $unit '*' 16 + $off + 13` + mknod ${name}${unit}o b $blk `expr $unit '*' 16 + $off + 14` + mknod ${name}${unit}p b $blk `expr $unit '*' 16 + $off + 15` + mknod r${name}${unit}a c $chr `expr $unit '*' 16 + $off + 0` + mknod r${name}${unit}b c $chr `expr $unit '*' 16 + $off + 1` + mknod r${name}${unit}c c $chr `expr $unit '*' 16 + $off + 2` + mknod r${name}${unit}d c $chr `expr $unit '*' 16 + $off + 3` + mknod r${name}${unit}e c $chr `expr $unit '*' 16 + $off + 4` + mknod r${name}${unit}f c $chr `expr $unit '*' 16 + $off + 5` + mknod r${name}${unit}g c $chr `expr $unit '*' 16 + $off + 6` + mknod r${name}${unit}h c $chr `expr $unit '*' 16 + $off + 7` + mknod r${name}${unit}i c $chr `expr $unit '*' 16 + $off + 8` + mknod r${name}${unit}j c $chr `expr $unit '*' 16 + $off + 9` + mknod r${name}${unit}k c $chr `expr $unit '*' 16 + $off + 10` + mknod r${name}${unit}l c $chr `expr $unit '*' 16 + $off + 11` + mknod r${name}${unit}m c $chr `expr $unit '*' 16 + $off + 12` + mknod r${name}${unit}n c $chr `expr $unit '*' 16 + $off + 13` + mknod r${name}${unit}o c $chr `expr $unit '*' 16 + $off + 14` + mknod r${name}${unit}p c $chr `expr $unit '*' 16 + $off + 15` + chown root.operator ${name}${unit}[a-p] r${name}${unit}[a-p] + chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p] + done + umask 77 + ;; + +cd*) + umask 2 ; unit=`expr $i : '..\(.*\)'` + case $i in + cd*) name=cd; blk=8; chr=9;; + esac + rm -f $name$unit? r$name$unit? + case $unit in + 0|1|2|3|4|5|6) + mknod ${name}${unit}a b $blk `expr $unit '*' 8 + 0` + mknod ${name}${unit}c b $blk `expr $unit '*' 8 + 2` + mknod r${name}${unit}a c $chr `expr $unit '*' 8 + 0` + mknod r${name}${unit}c c $chr `expr $unit '*' 8 + 2` + chown root.operator ${name}${unit}[a-h] r${name}${unit}[a-h] + chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h] + ;; + *) + echo bad unit for disk in: $i + ;; + esac + umask 77 + ;; + +ttyw*|tty0*|ttya|ttyb|ttyc|ttyd) + type=`expr $i : 'tty\(.\)'` + case $type in + 0) + unit=`expr $i : 'tty.\(.\)'` + case $unit in + 0|1|2|3) + rm -f tty0${unit} cua0${unit} + mknod tty0${unit} c 13 ${unit} + mknod cua0${unit} c 13 `expr 128 + ${unit}` + chown uucp.dialer tty0${unit} cua0${unit} + chmod 660 tty0${unit} cua0${unit} + ;; + *) + echo bad unit for tty0 in: $i + ;; + esac + ;; + w) + unit=`expr $i : 'tty.\(.\)'` + case $unit in + 0|1|2|3) + rm -f ttyw${unit} cuaw${unit} + mknod ttyw${unit} c 30 ${unit} + mknod cuaw${unit} c 30 `expr 128 + ${unit}` + chown uucp.dialer ttyw${unit} cuaw${unit} + chmod 660 ttyw${unit} cuaw${unit} + ;; + *) + echo bad unit for ttyw in: $i + ;; + esac + ;; + a|b|c|d) + unit=${type} + num=`echo ${unit} | tr abcd 0123` + rm -f tty${unit} cua${unit} + mknod tty${unit} c 12 ${num} + mknod cua${unit} c 12 `expr 128 + ${num}` + chown uucp.dialer tty${unit} cua${unit} + chmod 660 tty${unit} cua${unit} + ;; + *) + echo bad type for tty in: $i + ;; + esac + ;; + +lp*) + unit=`expr $i : 'par\(.*\)'` + rm -f par${unit} + case $unit in + 0) + mknod par${unit} c 28 ${unit} + ;; + *) + echo bad unit for lp in: $i + ;; + esac + ;; + +pty*) + class=`expr $i : 'pty\(.*\)'` + case $class in + 0) offset=0 name=p;; + 1) offset=16 name=q;; + 2) offset=32 name=r;; + 3) offset=48 name=s;; + 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; + *) echo bad unit for pty in: $i;; + esac + case $class in + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) + umask 0 + eval `echo $offset $name | awk ' { b=$1; n=$2 } END { + for (i = 0; i < 16; i++) + printf("rm -f tty%s%x pty%s%x;" \ + "mknod tty%s%x c 4 %d;" \ + "mknod pty%s%x c 5 %d; ", \ + n, i, n, i, n, i, b+i, n, i, b+i); }'` + umask 77 + ;; + esac + ;; + +bpf*) + unit=`expr $i : 'bpf\(.*\)'` + rm -f bpf$unit + mknod bpf$unit c 22 $unit + chown root.wheel bpf$unit + ;; + +pf) + rm -f pf + mknod pf c 39 0 + chown root.wheel pf + chmod 600 pf + ;; + +tun*) + unit=`expr $i : 'tun\(.*\)'` + rm -f tun$unit + mknod tun$unit c 23 $unit + chmod 600 tun$unit + chown root.wheel tun$unit + ;; + +rd*) + umask 2 ; unit=`expr $i : '.*d\(.*\)'` + mknod rd${unit}a b 9 `expr $unit '*' 16 + 0` + mknod rd${unit}c b 9 `expr $unit '*' 16 + 2` + mknod rrd${unit}a c 18 `expr $unit '*' 16 + 0` + mknod rrd${unit}c c 18 `expr $unit '*' 16 + 2` + chown root.operator rd${unit}[ac] rrd${unit}[ac] + chmod 640 rd${unit}[ac] rrd${unit}[ac] + umask 77 + ;; + +lkm) + rm -f lkm + mknod lkm c 24 0 + chown root.kmem lkm + chmod 640 lkm + ;; + +sram*|nvram*|flash*|vmel*|vmes*) + rm -f $i + case $i in + sram*) maj=7;; + nvram*) maj=10;; + flash*) maj=11;; + vmel*) maj=31;; + vmes*) maj=32;; + esac + mknod $i c ${maj} 0 + chown root.kmem $i + chmod 640 $i + ;; + +random|srandom|urandom|prandom|arandom) + rm -f random urandom srandom prandom arandom + mknod random c 40 0 + mknod srandom c 40 1 + mknod urandom c 40 2 + mknod prandom c 40 3 + mknod arandom c 40 4 + chown root.wheel random srandom urandom prandom arandom + chmod 644 random srandom urandom prandom arandom + ;; + +uk*) + unit=`expr $i : 'uk\(.*\)'` + rm -f uk$unit + mknod uk$unit c 41 $unit + chown root.operator uk$unit + chmod 640 uk$unit + ;; + +ss*) + unit=`expr $i : 'ss\(.*\)'` + rm -f ss$unit + mknod ss$unit c 42 $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 + ;; + +altq) + mkdir -p altq + chmod 755 altq + unit=0 + for dev in altq cbq wfq afm fifoq red rio localq hfsc \ + cdnr blue priq; do + rm -f altq/$dev + mknod altq/$dev c 52 $unit + chmod 644 altq/$dev + unit=$(($unit + 1)) + done + ;; + +local) + umask 0 + test -s MAKEDEV.local && sh MAKEDEV.local + umask 77 + ;; + +*) + echo $i: unknown device + ;; +esac +done diff --git a/etc/etc.mvme88k/MAKEDEV.md b/etc/etc.mvme88k/MAKEDEV.md new file mode 100644 index 00000000000..f3a13111e2d --- /dev/null +++ b/etc/etc.mvme88k/MAKEDEV.md @@ -0,0 +1,361 @@ +#!/bin/sh - +# +# $OpenBSD: MAKEDEV.md,v 1.1 2002/02/08 20:26:36 todd Exp $ +# $NetBSD: MAKEDEV,v 1.5 1997/01/01 23:46:23 pk Exp $ +# +# Copyright (c) 1990 The Regents of the University of California. +# All rights reserved. +# +# Written and contributed by W. Jolitz 12/90 +# +# Redistribution and use in source and binary forms are permitted provided +# that: (1) source distributions retain this entire copyright notice and +# comment, and (2) distributions including binaries display the following +# acknowledgement: ``This product includes software developed by the +# University of California, Berkeley and its contributors'' in the +# documentation or other materials provided with the distribution and in +# all advertising materials mentioning features or use of this software. +# Neither the name of the University nor the names of its contributors may +# be used to endorse or promote products derived from this software without +# specific prior written permission. +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# @(#)MAKEDEV 5.2 (Berkeley) 6/22/90 +# +# Device "make" file. Valid arguments: +# all makes all known devices, including local devices. +# Tries to make the 'standard' number of each type. +# std standard devices +# local configuration specific devices +# +# Tapes: +# st* SCSI tapes +# +# Disks: +# sd* SCSI disks +# cd* SCSI CD-ROM +# rd* "ramdisk" pseudo-disks +# vnd* "file" pseudo-disks +# ccd* contatenated disk devices +# +# Pseudo terminals: +# pty* set of 16 master and slave pseudo terminals +# +# Printers: +# lpt* stock lp +# lpa* interruptless lp +# +# Call units: +# +# Special purpose devices: +# bpf* packet filter +# lkm loadable kernel modules interface +# tun* network tunnel driver +# ss* SCSI scanner +# uk* SCSI unknown +# ch* SCSI changer +# altq ALTQ control interface +# +# Machine specific devices: +# sram static ram available on some models. +# nvram non-volatile ram +# flash flash ram available on some models. +# bugtty (depricated) +# vmel 32-bit vme interface +# vmes 16-bit vme interface + +PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/etc +this=$0 +umask 77 +for i +do +case $i in + +all) + sh $this std fd st0 ttya ttyb ttyc ttyd + sh $this tty00 tty01 tty02 tty03 + sh $this ttyw0 + sh $this sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9 + sh $this vnd0 vnd1 pty0 cd0 + sh $this bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9 + #sh $this ccd0 ccd1 ccd2 ccd3 + sh $this pf tun0 tun1 lkm local + sh $this sram0 nvram0 flash0 vmel0 vmes0 + #sh $this lp0 lptwo0 + sh $this random + sh $this uk0 uk1 + sh $this ss0 altq + ;; + +std) + rm -f console drum mem kmem null zero tty + rm -f klog stdin stdout stderr ksyms + mknod console c 0 0 + mknod drum c 3 0 ; chmod 640 drum ; chgrp kmem drum + mknod kmem c 2 1 ; chmod 640 kmem ; chgrp kmem kmem + mknod mem c 2 0 ; chmod 640 mem ; chgrp kmem mem + mknod null c 2 2 ; chmod 666 null + mknod zero c 2 12 ; chmod 666 zero + mknod tty c 1 0 ; chmod 666 tty + mknod klog c 6 0 ; chmod 600 klog + mknod stdin c 21 0 ; chmod 666 stdin + mknod stdout c 21 1 ; chmod 666 stdout + mknod stderr c 21 2 ; chmod 666 stderr + mknod ksyms c 43 0 ; chmod 640 ksyms ; chown root.kmem ksyms + ;; + +raminst) + sh $this std fd st0 ttya rd0 + sh $this tty00 tty01 tty02 tty03 + sh $this sd0 sd1 sd2 sd3 + sh $this pty0 + #sh $this ccd0 ccd1 ccd2 ccd3 + sh $this tun0 tun1 lkm local + sh $this sram0 nvram0 flash0 vmel0 vmes0 + #sh $this lp0 lptwo0 + sh $this random + sh $this uk0 uk1 + sh $this ss0 + ;; + +fd) + rm -f fd/* + mkdir fd > /dev/null 2>&1 + (cd fd && eval `echo "" | awk ' BEGIN { \ + for (i = 0; i < 64; i++) \ + printf("mknod %d c 21 %d;", i, i)}'`) + chown -R bin.bin fd + chmod 555 fd + chmod 666 fd/* + ;; + +ss*) + case $i in + ss*) name=ss; unit=${i#ss}; chr=33;; + esac + rm -f $name$unit n$name$unit + mknod $name$unit c $chr `expr $unit '*' 16 + 0` + mknod n$name$unit c $chr `expr $unit '*' 16 + 1` + chgrp operator $name$unit n$name$unit + chmod 640 $name$unit n$name$unit + ;; + +ccd*|sd*) + case $i in + ccd*) name=ccd; unit=${i#ccd}; blk=5; chr=17;; + sd*) name=sd; unit=${i#sd}; blk=4; chr=8;; + esac + rm -f $name$unit? r$name$unit? + minor=`expr $unit '*' 16` + for slice in a b c d e f g h i j k l m n o p + do + dev=${name}${unit}${slice} + mknod $dev b $blk $minor + mknod r$dev c $chr $minor + minor=$(( $minor + 1 )) + done + chown root.operator $name$unit? r$name$unit? + chmod 640 $name$unit? r$name$unit? + ;; + +vnd*) + unit=${i#vnd} + for name in vnd svnd; do + blk=8; chr=19; + case $name in + vnd) off=0;; + svnd) off=128;; + esac + rm -f $name$unit? r$name$unit? + minor=`expr $unit '*' 16 '+' $off` + for slice in a b c d e f g h i j k l m n o p + do + dev=${name}${unit}${slice} + mknod $dev b $blk $minor + mknod r$dev c $chr $minor + minor=$(( $minor + 1 )) + done + chown root.operator ${name}${unit}? r${name}${unit}? + chmod 640 ${name}${unit}? r${name}${unit}? + done + ;; + +pty*) + class=${i#pty} + case $class in + 0) offset=0 name=p;; + 1) offset=16 name=q;; + 2) offset=32 name=r;; + 3) offset=48 name=s;; + 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; + *) echo bad unit for pty in: $i;; + esac + case $class in + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) + umask 0 + eval `echo $offset $name | awk ' { b=$1; n=$2 } END { + for (i = 0; i < 16; i++) + printf("rm -f tty%s%x; mknod tty%s%x c 4 %d; \ + rm -f pty%s%x; mknod pty%s%x c 5 %d; ", \ + n, i, n, i, b+i, n, i, n, i, b+i); }'` + umask 77 + ;; + esac + ;; + +st*) + case $i in + st*) name=st; unit=${i#st}; chr=20; blk=7;; + esac + rm -f $name$unit n$name$unit e$name$unit en$name$unit \ + r$name$unit nr$name$unit er$name$unit enr$name$unit + mknod $name$unit b $blk `expr $unit '*' 16 + 0` + mknod n$name$unit b $blk `expr $unit '*' 16 + 1` + mknod e$name$unit b $blk `expr $unit '*' 16 + 2` + mknod en$name$unit b $blk `expr $unit '*' 16 + 3` + mknod r$name$unit c $chr `expr $unit '*' 16 + 0` + mknod nr$name$unit c $chr `expr $unit '*' 16 + 1` + mknod er$name$unit c $chr `expr $unit '*' 16 + 2` + mknod enr$name$unit c $chr `expr $unit '*' 16 + 3` + chgrp operator $name$unit n$name$unit e$name$unit en$name$unit \ + r$name$unit nr$name$unit er$name$unit enr$name$unit + chmod 660 $name$unit n$name$unit e$name$unit en$name$unit \ + r$name$unit nr$name$unit er$name$unit enr$name$unit + ;; + +ch*) + case $i in + ch*) name=ch; unit=${i#ch}; chr=31;; + esac + rm -f $name$unit + mknod $name$unit c $chr $unit + chown root.operator $name$unit + chmod 660 $name$unit + ;; + +uk*) + case $i in + uk*) name=uk; unit=${i#uk}; chr=34;; + esac + rm -f $name$unit + mknod $name$unit c $chr $unit + chown root.wheel $name$unit + chmod 600 $name$unit + ;; + +cd*) + case $i in + cd*) name=cd; unit=${i#cd}; chr=9; blk=6;; + esac + rm -f $name$unit? r$name$unit? + mknod ${name}${unit}a b $blk `expr $unit '*' 16 + 0` + mknod ${name}${unit}c b $blk `expr $unit '*' 16 + 2` + mknod r${name}${unit}a c $chr `expr $unit '*' 16 + 0` + mknod r${name}${unit}c c $chr `expr $unit '*' 16 + 2` + chgrp operator $name$unit? r$name$unit? + chmod 640 $name$unit? r$name$unit? + ;; + +lpt*|lpa*) + case $i in + lpt*) name=lpt; unit=${i#lpt}; chr=11; flags=0;; + lpa*) name=lpa; unit=${i#lpa}; chr=11; flags=128;; + esac + rm -f $name$unit + mknod $name$unit c $chr `expr $unit + $flags` + chown root.wheel $name$unit + ;; + +pf) + rm -f pf + mknod pf c 39 0 + chown root.wheel pf + chmod 600 pf + ;; + +bpf*|tun*) + case $i in + bpf*) name=bpf; unit=${i#bpf}; chr=22;; + tun*) name=tun; unit=${i#tun}; chr=23;; + esac + rm -f $name$unit + mknod $name$unit c $chr $unit + chown root.wheel $name$unit + ;; + +sram*|nvram*|flash*|vmel*|vmes*) + rm -f $i + case $i in + sram*) maj=7;; + nvram*) maj=10;; + flash*) maj=11;; + vmel*) maj=31;; + vmes*) maj=32;; + esac + mknod $i c ${maj} 0 + chown root.kmem $i + chmod 640 $i + ;; + +random|srandom|urandom|prandom|arandom) + rm -f random urandom srandom prandom arandom + mknod random c 40 0 + mknod srandom c 40 1 + mknod urandom c 40 2 + mknod prandom c 40 3 + mknod arandom c 40 4 + chown root.wheel random srandom urandom prandom arandom + chmod 644 random srandom urandom prandom arandom + ;; + +rd*) + umask 2 ; unit=`expr $i : '.*d\(.*\)'` + mknod rd${unit}a b 7 `expr $unit '*' 16 + 0` + mknod rd${unit}c b 7 `expr $unit '*' 16 + 2` + mknod rrd${unit}a c 18 `expr $unit '*' 16 + 0` + mknod rrd${unit}c c 18 `expr $unit '*' 16 + 2` + chown root.operator rd${unit}[ac] rrd${unit}[ac] + chmod 640 rd${unit}[ac] rrd${unit}[ac] + umask 77 + ;; + +lkm) + rm -f lkm + mknod lkm c 24 0 + chown root.kmem lkm + chmod 640 lkm + ;; + +altq) + mkdir -p altq + chmod 755 altq + unit=0 + for dev in altq cbq wfq afm fifoq red rio localq hfsc \ + cdnr blue priq; do + rm -f altq/$dev + mknod altq/$dev c 52 $unit + chmod 644 altq/$dev + unit=$(($unit + 1)) + done + ;; + +local) + umask 0 + test -s MAKEDEV.local && sh MAKEDEV.local + ;; + +esac +done diff --git a/etc/etc.mvmeppc/MAKEDEV.md b/etc/etc.mvmeppc/MAKEDEV.md new file mode 100644 index 00000000000..7384352d4a5 --- /dev/null +++ b/etc/etc.mvmeppc/MAKEDEV.md @@ -0,0 +1,522 @@ +#!/bin/sh - +# $OpenBSD: MAKEDEV.md,v 1.1 2002/02/08 20:26:36 todd Exp $ +# +# Copyright (c) 1990 The Regents of the University of California. +# All rights reserved. +# +# Written and contributed by W. Jolitz 12/90 +# +# Redistribution and use in source and binary forms are permitted provided +# that: (1) source distributions retain this entire copyright notice and +# comment, and (2) distributions including binaries display the following +# acknowledgement: ``This product includes software developed by the +# University of California, Berkeley and its contributors'' in the +# documentation or other materials provided with the distribution and in +# all advertising materials mentioning features or use of this software. +# Neither the name of the University nor the names of its contributors may +# be used to endorse or promote products derived from this software without +# specific prior written permission. +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# from: @(#)MAKEDEV 5.2 (Berkeley) 6/22/90 +# $NetBSD: MAKEDEV,v 1.17 1996/02/03 15:02:42 briggs Exp $ +# +# Device "make" file. Valid arguments: +_TITLE(make) +_DEV(all) +_DEV(std) +_DEV(fdesc,21) +_DEV(local) +_DEV(ramd) +_TITLE(tap) +_DEV(st,20,5) +_TITLE(dis) +_DEV(wd,11,0) +_DEV(sd,8,2) +_DEV(cd,9,3) +_DEV(vnd,19,14) +_DEV(rd,17,17) +_DEV(ccd,18,16) +_DEV(raid,54,19) +_TITLE(term) +_DEV(wscons) +_DEV(wsdisp,67) +_DEV(wskbd,68) +_DEV(com,7) +_TITLE(point) +_DEV(wsmouse,69) +_TITLE(pty) +_DEV(tty) +_DEV(pty) +_TITLE(graphics) +_DEV(mac_grf) +_TTILE(usb) +_DEV(usb) +_DEV(uid) +_DEV(ulpt) +_DEV(urio) +_DEV(ugen) +_DEV(utty) +_TITLE(spec) +_DEV(au) +_DEV(ch) +_DEV(bpf) +_DEV(tun) +_DEV(lkm) +_DEV(rnd) +_DEV(altq) +_DEV(pf,39) +_DEV(usbs) +# +dnl +divert(7)dnl +dnl +_std(1,2,43,3,6) + M reload c 2 20 640 kmem + ;; + +sd*|wd*|ccd*|ofdisk*|raid*) + umask 2 ; unit=${i##*[a-z]} + case $i in + sd*) name=sd; blk=2; chr=8;; + wd*) name=wd; blk=0; chr=11;; + ofdisk*) name=ofdisk; blk=4; chr=13;; + ccd*) name=ccd; blk=16; chr=18;; + raid*) name=raid; blk=19; chr=54;; + esac + rm -f $name$unit? r$name$unit? + case $unit in + 0|1|2|3|4|5|6|7|8|9) + mknod ${name}${unit}a b $blk $(( $unit * 16 + 0 )) + mknod ${name}${unit}b b $blk $(( $unit * 16 + 1 )) + mknod ${name}${unit}c b $blk $(( $unit * 16 + 2 )) + mknod ${name}${unit}d b $blk $(( $unit * 16 + 3 )) + mknod ${name}${unit}e b $blk $(( $unit * 16 + 4 )) + mknod ${name}${unit}f b $blk $(( $unit * 16 + 5 )) + mknod ${name}${unit}g b $blk $(( $unit * 16 + 6 )) + mknod ${name}${unit}h b $blk $(( $unit * 16 + 7 )) + mknod ${name}${unit}i b $blk $(( $unit * 16 + 8 )) + mknod ${name}${unit}j b $blk $(( $unit * 16 + 9 )) + mknod ${name}${unit}k b $blk $(( $unit * 16 + 10 )) + mknod ${name}${unit}l b $blk $(( $unit * 16 + 11 )) + mknod ${name}${unit}m b $blk $(( $unit * 16 + 12 )) + mknod ${name}${unit}n b $blk $(( $unit * 16 + 13 )) + mknod ${name}${unit}o b $blk $(( $unit * 16 + 14 )) + mknod ${name}${unit}p b $blk $(( $unit * 16 + 15 )) + mknod r${name}${unit}a c $chr $(( $unit * 16 + 0 )) + mknod r${name}${unit}b c $chr $(( $unit * 16 + 1 )) + mknod r${name}${unit}c c $chr $(( $unit * 16 + 2 )) + mknod r${name}${unit}d c $chr $(( $unit * 16 + 3 )) + mknod r${name}${unit}e c $chr $(( $unit * 16 + 4 )) + mknod r${name}${unit}f c $chr $(( $unit * 16 + 5 )) + mknod r${name}${unit}g c $chr $(( $unit * 16 + 6 )) + mknod r${name}${unit}h c $chr $(( $unit * 16 + 7 )) + mknod r${name}${unit}i c $chr $(( $unit * 16 + 8 )) + mknod r${name}${unit}j c $chr $(( $unit * 16 + 9 )) + mknod r${name}${unit}k c $chr $(( $unit * 16 + 10 )) + mknod r${name}${unit}l c $chr $(( $unit * 16 + 11 )) + mknod r${name}${unit}m c $chr $(( $unit * 16 + 12 )) + mknod r${name}${unit}n c $chr $(( $unit * 16 + 13 )) + mknod r${name}${unit}o c $chr $(( $unit * 16 + 14 )) + mknod r${name}${unit}p c $chr $(( $unit * 16 + 15 )) + chgrp operator ${name}${unit}[a-p] r${name}${unit}[a-p] + chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p] + ;; + *) + echo bad unit for disk in: $i + ;; + esac + umask 77 + ;; + +vnd*) + umask 2 ; unit=${i##*[a-z]} + for name in vnd svnd; do + blk=14; chr=19; + case $name in + vnd) off=0;; + svnd) off=128;; + esac + rm -f $name$unit? r$name$unit? + mknod ${name}${unit}a b $blk $(( $unit * 16 + $off + 0 )) + mknod ${name}${unit}b b $blk $(( $unit * 16 + $off + 1 )) + mknod ${name}${unit}c b $blk $(( $unit * 16 + $off + 2 )) + mknod ${name}${unit}d b $blk $(( $unit * 16 + $off + 3 )) + mknod ${name}${unit}e b $blk $(( $unit * 16 + $off + 4 )) + mknod ${name}${unit}f b $blk $(( $unit * 16 + $off + 5 )) + mknod ${name}${unit}g b $blk $(( $unit * 16 + $off + 6 )) + mknod ${name}${unit}h b $blk $(( $unit * 16 + $off + 7 )) + mknod ${name}${unit}i b $blk $(( $unit * 16 + $off + 8 )) + mknod ${name}${unit}j b $blk $(( $unit * 16 + $off + 9 )) + mknod ${name}${unit}k b $blk $(( $unit * 16 + $off + 10 )) + mknod ${name}${unit}l b $blk $(( $unit * 16 + $off + 11 )) + mknod ${name}${unit}m b $blk $(( $unit * 16 + $off + 12 )) + mknod ${name}${unit}n b $blk $(( $unit * 16 + $off + 13 )) + mknod ${name}${unit}o b $blk $(( $unit * 16 + $off + 14 )) + mknod ${name}${unit}p b $blk $(( $unit * 16 + $off + 15 )) + mknod r${name}${unit}a c $chr $(( $unit * 16 + $off + 0 )) + mknod r${name}${unit}b c $chr $(( $unit * 16 + $off + 1 )) + mknod r${name}${unit}c c $chr $(( $unit * 16 + $off + 2 )) + mknod r${name}${unit}d c $chr $(( $unit * 16 + $off + 3 )) + mknod r${name}${unit}e c $chr $(( $unit * 16 + $off + 4 )) + mknod r${name}${unit}f c $chr $(( $unit * 16 + $off + 5 )) + mknod r${name}${unit}g c $chr $(( $unit * 16 + $off + 6 )) + mknod r${name}${unit}h c $chr $(( $unit * 16 + $off + 7 )) + mknod r${name}${unit}i c $chr $(( $unit * 16 + $off + 8 )) + mknod r${name}${unit}j c $chr $(( $unit * 16 + $off + 9 )) + mknod r${name}${unit}k c $chr $(( $unit * 16 + $off + 10 )) + mknod r${name}${unit}l c $chr $(( $unit * 16 + $off + 11 )) + mknod r${name}${unit}m c $chr $(( $unit * 16 + $off + 12 )) + mknod r${name}${unit}n c $chr $(( $unit * 16 + $off + 13 )) + mknod r${name}${unit}o c $chr $(( $unit * 16 + $off + 14 )) + mknod r${name}${unit}p c $chr $(( $unit * 16 + $off + 15 )) + chown root.operator ${name}${unit}[a-p] r${name}${unit}[a-p] + chmod 640 ${name}${unit}[a-p] r${name}${unit}[a-p] + done + umask 77 + ;; + +tty0*) + unit=${i##tty0} + rm -f tty0$unit cua0$unit + mknod tty0$unit c 7 $unit + mknod cua0$unit c 7 `expr $unit + 128` + chown uucp.dialer tty0$unit cua0$unit + chmod 660 tty0$unit cua0$unit + ;; + +pty*) + class=${i##*[a-z]} + case $class in + 0) offset=0 name=p;; + 1) offset=16 name=q;; + 2) offset=32 name=r;; + 3) offset=48 name=s;; + 4) offset=64 name=t;; + 5) offset=80 name=u;; + 6) offset=96 name=v;; + 7) offset=112 name=w;; + 8) offset=128 name=x;; + 9) offset=144 name=y;; + 10) offset=160 name=z;; + 11) offset=176 name=P;; + 12) offset=192 name=Q;; + 13) offset=208 name=R;; + 14) offset=224 name=S;; + 15) offset=240 name=T;; + *) echo bad unit for pty in: $i;; + esac + case $class in + 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15) + umask 0 + n=0 + while [ $n -lt 16 ] + do + nam=$name`hex $n` + rm -f {tty,pty}$nam + mknod tty$nam c 4 $(( $offset + $n )) + mknod pty$nam c 5 $(( $offset + $n )) + n="$(( $n + 1 ))" + done + umask 77 + ;; + esac + ;; + +st*) + umask 2 ; unit=${i##*[a-z]} + case $i in + st*) name=st; chr=20; blk=5;; + esac + rm -f $name$unit n$name$unit e$name$unit en$name$unit \ + r$name$unit nr$name$unit er$name$unit enr$name$unit + case $unit in + 0|1|2|3|4|5|6) + mknod ${name}${unit} b $blk $(( $unit * 16 + 0 )) + mknod n${name}${unit} b $blk $(( $unit * 16 + 1 )) + mknod e${name}${unit} b $blk $(( $unit * 16 + 2 )) + mknod en${name}${unit} b $blk $(( $unit * 16 + 3 )) + mknod r${name}${unit} c $chr $(( $unit * 16 + 0 )) + mknod nr${name}${unit} c $chr $(( $unit * 16 + 1 )) + mknod er${name}${unit} c $chr $(( $unit * 16 + 2 )) + mknod enr${name}${unit} c $chr $(( $unit * 16 + 3 )) + chown root.operator ${name}${unit} n${name}${unit} \ + e$name$unit en$name$unit \ + r${name}${unit} nr${name}${unit} \ + er${name}${unit} enr${name}${unit} + chmod 660 ${name}${unit} n${name}${unit} \ + e$name$unit en$name$unit \ + r${name}${unit} nr${name}${unit} \ + er${name}${unit} enr${name}${unit} + ;; + *) + echo bad unit for tape in: $i + ;; + esac + umask 77 + ;; + +ch*) + umask 2 ; unit=${i##*[a-z]} + case $i in + ch*) name=ch; chr=10;; + esac + rm -f $name$unit + case $unit in + 0|1|2|3|4|5|6) + mknod ${name}${unit} c $chr $unit + chown root.operator ${name}${unit} + chmod 660 ${name}${unit} + ;; + *) + echo bad unit for media changer in: $i + ;; + esac + umask 77 + ;; + +cd*) + umask 2 ; unit=${i##*[a-z]} + case $i in + cd*) name=cd; blk=3; chr=9;; + esac + rm -f $name$unit? r$name$unit? + case $unit in + 0|1|2|3|4|5|6) + mknod ${name}${unit}a b $blk $(( $unit * 8 + 0 )) + mknod ${name}${unit}c b $blk $(( $unit * 8 + 2 )) + mknod r${name}${unit}a c $chr $(( $unit * 8 + 0 )) + mknod r${name}${unit}c c $chr $(( $unit * 8 + 2 )) + chgrp operator ${name}${unit}[a-h] r${name}${unit}[a-h] + chmod 640 ${name}${unit}[a-h] r${name}${unit}[a-h] + ;; + *) + echo bad unit for disk in: $i + ;; + esac + umask 77 + ;; + +audio*) + major=44 + audio=audio$unit + sound=sound$unit + mixer=mixer$unit + audioctl=audioctl$unit + rm -f $sound $audio $mixer $audioctl + mknod $sound c $major $unit + mknod $audio c $major $(( $unit + 128 )) + mknod $mixer c $major $(( $unit + 16 )) + mknod $audioctl c $major $(( $unit + 192 )) + chown root.wheel $audio $sound $mixer $audioctl + chmod 666 $audio $sound $mixer $audioctl + [ -e audio ] || ln -s $audio audio + [ -e mixer ] || ln -s $mixer mixer + [ -e sound ] || ln -s $sound sound + [ -e audioctl ] || ln -s $audioctl audioctl + ;; + +usb*) + rm -f usb$unit + mknod usb$unit c 61 $unit + chown root.wheel usb$unit + chmod 660 usb$unit + ;; + +uhid*) + rm -f uhid$unit + mknod uhid$unit c 62 $unit + chown root.wheel uhid$unit + chmod 660 uhid$unit + ;; + +ugen*) + for j in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 + do + rm -f ugen$unit.$j + mknod ugen$unit.$j c 63 $(( $unit * 16 + $j )) + chown root.wheel ugen$unit.$j + chmod 660 ugen$unit.$j + done + ;; + +ulpt*) + rm -f ulpt$unit + mknod ulpt$unit c 64 $unit + chown root.wheel ulpt$unit + chmod 660 ulpt$unit + ;; + +urio*) + rm -f urio$unit + mknod urio$unit c 65 $unit + chown root.wheel urio$unit + chmod 660 urio$unit + ;; + +utty*) + rm -f utty$unit + mknod utty$unit c 66 $unit + chown root.wheel utty$unit + chmod 660 utty$unit + ;; + + +ttyCcfg) + major=67 + minor=255 + rm -f ttyCcfg + mknod ttyCcfg c $major $minor + chown root.wheel ttyCcfg + ;; + +ttyC*) + type=C + unit=${i##ttyC} + major=67 + minor=$unit + rm -f tty$type$unit + mknod tty$type$unit c $major $minor + chown root.wheel tty$type$unit + ;; + +bpf*) + unit=${i##*[a-z]} + rm -f bpf${unit} + mknod bpf${unit} c 22 ${unit} + chown root.wheel bpf${unit} + ;; + +pf) + rm -f pf + mknod pf c 39 0 + chown root.wheel pf + chmod 600 pf + ;; + +tun*) + unit=${i##*[a-z]} + rm -f tun$unit + mknod tun$unit c 23 $unit + chmod 600 tun$unit + chown root.wheel tun$unit + ;; + +rd*) + blk=17; chr=17; + umask 2 ; unit=${i##*[a-z]} + rm -f rd${unit}a rd${unit}c rrd${unit}a rrd${unit}c + mknod rd${unit}a b ${blk} $(( $unit * 16 + 0 )) + mknod rd${unit}c b ${blk} $(( $unit * 16 + 2 )) + mknod rrd${unit}a c ${chr} $(( $unit * 16 + 0 )) + mknod rrd${unit}c c ${chr} $(( $unit * 16 + 2 )) + chown root.operator rd${unit}[ac] rrd${unit}[ac] + chmod 640 rd${unit}[ac] rrd${unit}[ac] + umask 77 + ;; + +lkm) + rm -f lkm + mknod lkm c 24 0 + chown root.kmem lkm + chmod 640 lkm + ;; + +pci*) + rm -f pci + mknod pci c 71 0 + chown root.kmem pci + chmod 664 pci + ;; + +random|srandom|urandom|prandom|arandom) + rm -f random urandom srandom prandom arandom + mknod random c 40 0 + mknod srandom c 40 1 + mknod urandom c 40 2 + mknod prandom c 40 3 + mknod arandom c 40 4 + chown root.wheel random srandom urandom prandom arandom + chmod 644 random srandom urandom prandom arandom + ;; +uk*) + unit=${i##*[a-z]} + rm -f uk$unit + mknod uk$unit c 41 $unit + chown root.operator uk$unit + chmod 640 uk$unit + ;; + +ss*) + unit=${i##*[a-z]} + rm -f ss$unit + mknod ss$unit c 42 $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 + ;; +wscons) + sh $this wskbd0 wskbd1 wskbd2 wskbd3 + sh $this wsmouse0 wsmouse1 wsmouse2 wsmouse3 + sh $this ttyCcfg + sh $this wsmux + ;; +wsmux|wsmouse|wskbd) + rm -f wsmouse wskbd + mknod wsmouse c 70 0 + mknod wskbd c 70 1 + chown root.wheel wsmouse wskbd + chmod 600 wsmouse wskbd + ;; + +wskbd*) + unit=${i##*[a-z]} + rm -f wskbd${unit} + mknod wskbd${unit} c 68 ${unit} + # XXX + chmod 660 wskbd${unit} + chown root.wheel wskbd${unit} + ;; +wsmouse*) + unit=${i##*[a-z]} + rm -f wsmouse${unit} + mknod wsmouse${unit} c 69 ${unit} + # XXX + chmod 660 wsmouse${unit} + chown root.wheel wsmouse${unit} + ;; + +xfs*) + rm -f xfs$unit + mknod xfs$unit c 51 $unit + chmod 600 xfs$unit + chown root.wheel xfs$unit + ;; + +altq) + mkdir -p altq + chmod 755 altq + unit=0 + for dev in altq cbq wfq afm fifoq red rio localq hfsc \ + cdnr blue priq; do + rm -f altq/$dev + mknod altq/$dev c 71 $unit + chmod 644 altq/$dev + unit=$(($unit + 1)) + done + ;; + +local) + umask 0 + test -s MAKEDEV.local && sh $this.local + ;; + +*) + echo $i: unknown device +esac +done + diff --git a/etc/etc.sparc64/MAKEDEV.md b/etc/etc.sparc64/MAKEDEV.md index 160fe1c1086..adf290e3818 100644 --- a/etc/etc.sparc64/MAKEDEV.md +++ b/etc/etc.sparc64/MAKEDEV.md @@ -1,5 +1,5 @@ vers(__file__, - {-$OpenBSD: MAKEDEV.md,v 1.13 2002/01/31 22:37:07 jason Exp $-}, + {-$OpenBSD: MAKEDEV.md,v 1.14 2002/02/08 20:26:36 todd Exp $-}, etc.MACHINE)dnl dnl dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> @@ -55,8 +55,8 @@ _TITLE(point) _DEV(mouse,13) _DEV(wsmouse,80) _TITLE(term) -_DEV(tzs,12) -_DEV(czs,12) +_DEV(s64_tzs,12) +_DEV(s64_czs,12) _DEV(com,36) _DEV(tth,77) _TITLE(pty) diff --git a/etc/etc.vax/MAKEDEV.md b/etc/etc.vax/MAKEDEV.md new file mode 100644 index 00000000000..039a4e793da --- /dev/null +++ b/etc/etc.vax/MAKEDEV.md @@ -0,0 +1,139 @@ +vers(__file__, + {-$OpenBSD: MAKEDEV.md,v 1.1 2002/02/08 20:26:36 todd Exp $-}, +etc.MACHINE)dnl +dnl +dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> +dnl All rights reserved. +dnl +dnl Redistribution and use in source and binary forms, with or without +dnl modification, are permitted provided that the following conditions +dnl are met: +dnl 1. Redistributions of source code must retain the above copyright +dnl notice, this list of conditions and the following disclaimer. +dnl 2. The name of the author may not be used to endorse or promote products +dnl derived from this software without specific prior written permission. +dnl +dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +dnl AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +dnl THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +dnl EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +dnl PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +dnl OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +dnl WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +dnl ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +dnl +dnl +_TITLE(make) +_DEV(all) +_DEV(std) +_DEV(loc) +_TITLE(tap) +_DEV(st,38,21) +_DEV(mt,38,15) +_DEV(ht,5,1) +_DEV(tm,14,5) +_DEV(ts,16,6) +_DEV(ut,17,10) +_TITLE(dis) +_DEV(hp,4,0) +_DEV(hk,11,3) +_DEV(up,13,2) +_DEV(ra,9,9) +_DEV(rb,23,11) +_DEV(rx,30,12) +_DEV(rl,32,14) +_DEV(hd,58,19) +_DEV(sd,59,20) +_DEV(cd,58,22) +_DEV(ch,19) +_DEV(uk,120) +_DEV(ss,121) +_DEV(xy,9,3) +_DEV(rd,106,23) +_DEV(xd,42,10) +_DEV(flo,54,16) +_DEV(vnd,55,8) +_DEV(ccd,54,17) +_TITLE(pty) +_DEV(tty,20) +_DEV(pty,21) +_TITLE(prn) +_TITLE(term) +dnl _DEV(ttyS,34) +_TITLE(spec) +_DEV(au,69) +_DEV(oppr) +_DEV(bpf,56) +_DEV(pf,42) +_DEV(altq,75) +_DEV(lkm,112) +_DEV(tun,111) +_DEV(rnd,119) +_DEV(mag) +_DEV(xfs,51) +_DEV(raid,73,25) +_DEV(fdesc,53) +_DEV(ses,124) +dnl +divert(7)dnl +dnl +floppy) + _recurse std random + _recurse fd0 sd0 sd1 + ;; + +_std(2,3,50,7,33) + M ttyg0 c 25 0 + M ttyg1 c 25 1 + M ttyg2 c 25 2 + M ttyg3 c 25 3 + M crl c 35 0 + M csa1 c 51 0 + M csa2 c 51 1 + M tu0 b 8 0 + M tu1 b 8 1 + M kUmem c 3 3 660 + ;; + +ht*|tm*|mt*|ts*|ut*) + case $i in + ht*) n=ht b=1 c=5;; + mt*) n=mt b=15 c=38;; + tm*) n=tm b=5 c=14;; + ts*) n=ts b=6 c=16;; + ut*) n=ut b=10 c=17;; + esac + case $U in + [0-7]) + four=Add($U,4) eight=Add($U,8) + twelve=Add($U,12) twenty=Add($U,20) + M $n$U b $b $U 660 operator + M $n$four b $b $four 660 operator + M $n$eight b $b $eight 660 operator + M $n$twelve b $b $twelve 660 operator + M n$n$four b $b $four 660 operator + M n$n$twelve b $b $twelve 660 operator + M nr$n$four c $c $four 660 operator + M nr$n$twelve c $c $twelve 660 operator + M r$n$U c $c $U 660 operator + M r$n$four c $c $four 660 operator + M r$n$eight c $c $eight 660 operator + M r$n$twelve c $c $twelve 660 operator + if [ $i = ut ]; : XXXX + then + M $n$twenty b $b $twenty 660 operator + M r$n$twenty c $b $twenty 660 operator + fi + #RMlist="$RMlist mt$U mt$four mt$eight mt$twelve" + #RMlist="$RMlist nmt$U nmt$eight nrmt$eight" + #RMlist="$RMlist nrmt$unit nrmt$eight" + #RMlist="$RMlist rmt$unit rmt$four rmt$eight rmt$twelve" + ;; + *) + echo bad unit for tape in: $i + ;; + esac + umask 77 + ;; |