diff --git a/src/etc/etc.arm32/MAKEDEV b/src/etc/etc.arm32/MAKEDEV index 54b8da47..f9b1f86a 100644 --- a/src/etc/etc.arm32/MAKEDEV +++ b/src/etc/etc.arm32/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.11 1997/12/08 21:27:38 mickey Exp $ +# $OpenBSD: MAKEDEV,v 1.12 1998/09/25 11:02:43 todd Exp $ # $NetBSD: MAKEDEV,v 1.3 1996/04/26 20:10:24 mark Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -27,8 +27,8 @@ # # Device "make" file. Valid arguments: # all makes all known devices, including local devices. -# Tries to make the 'standard' number of each type. -# floppy devices to be put on install floppies +# Tries to make the ``standard'' number of each type. +# floppy devices needed for install floppies # std standard devices # local configuration specific devices # @@ -36,10 +36,10 @@ # st* SCSI tapes # # Disks: -# wd* "winchester" disk drives (ST506,IDE,ESDI,RLL,...) -# fd* "floppy" disk drives (3 1/2", 5 1/4") +# wd* ISA "winchester" disk drives (ST506,IDE,ESDI,RLL,...) +# fd* Floppy disk drives (3 1/2", 5 1/4") # sd* SCSI disks -# cd* SCSI CD-ROM +# cd* SCSI cdrom drives # vnd* "file" pseudo-disks # # Console ports: @@ -66,41 +66,47 @@ # Call units: # # Special purpose devices: -# rd ram disk +# rd* "ramdisk" pseudo-disks # kbd raw keyboard # kbdctl keyboard control -# fd file descriptors -# bpf* packet filter +# fd makes fd/* for the fdescfs. +# bpf* Berkeley Packet Filter # beep riscpc speaker # lkm loadable kernel modules interface # tun* network tunnel driver -# ch* SCSI Auto changer +# ch* SCSI media changer # uk* SCSI Unknown device -# ss* SCSI scanner device +# ss* SCSI scanners # iic* IIC bus device # rtc* RTC device -# *random random data source +# *random inkernal random data source # -PATH=/sbin:/usr/sbin:/bin:/usr/bin +PATH=/sbin:/bin:/usr/bin:/usr/sbin +this=$0 umask 77 + for i do + +unit=`unt $i` +[ "$unit" ] || unit=0 + case $i in all) - sh MAKEDEV std fd fd0 fd1 wd0 wd1 rd0 rd1 sd0 sd1 sd2 tty0 tty1 pty0 pty1 - sh MAKEDEV st0 st1 ch0 cd0 cd1 vnd0 vnd1 ccd0 ccd1 uk0 uk1 ss0 - sh MAKEDEV ttyv0 ttyv1 ttyv2 ttyv3 ttyv4 ttyv5 ttyv6 ttyv7 ttyv8 ttyv9 - sh MAKEDEV bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9 - sh MAKEDEV lpa0 lpt0 tun0 tun1 tun2 random - sh MAKEDEV beep lkm quadmouse local cpu0 cpu1 cpu2 cpu3 cpu4 cpu5 + sh $this std fd fd0 fd1 wd0 wd1 rd0 rd1 sd0 sd1 sd2 tty0 tty1 pty0 pty1 + sh $this st0 st1 ch0 cd0 cd1 vnd0 vnd1 ccd0 ccd1 uk0 uk1 ss0 + sh $this ttyv0 ttyv1 ttyv2 ttyv3 ttyv4 ttyv5 ttyv6 ttyv7 ttyv8 ttyv9 + sh $this bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9 + sh $this lpa0 lpt0 tun0 tun1 tun2 random + sh $this beep lkm quadmouse local cpu0 cpu1 cpu2 cpu3 cpu4 cpu5 ;; floppy) - sh MAKEDEV std fd0 fd1 wd0 wd1 rd0 rd1 sd0 sd1 sd2 tty0 tty1 - sh MAKEDEV ttyv0 ttyv1 ttyv2 ttyv3 ttyv4 ttyv5 - sh MAKEDEV st0 st1 cd0 cd1 + sh $this std fd0 fd1 wd0 wd1 rd0 rd1 sd0 sd1 sd2 tty0 tty1 + sh $this ttyv0 ttyv1 ttyv2 ttyv3 ttyv4 ttyv5 + sh $this st0 st1 cd0 cd1 ;; std) @@ -388,10 +394,16 @@ random|srandom|urandom|prandom|arandom) chown root.wheel random srandom urandom prandom arandom chmod 644 random srandom urandom prandom arandom ;; +xfs*) + rm -f xfs$unit + mknod xfs$unit c 51 $unit + chmod 600 xfs$unit + chown root.wheel xfs$unit + ;; local) umask 0 - test -s MAKEDEV.local && sh MAKEDEV.local + test -s MAKEDEV.local && sh $this.local ;; esac