Browse Source

various cleanups

OPENBSD_3_0
deraadt 23 years ago
parent
commit
acdf0ef35b
1 changed files with 8 additions and 42 deletions
  1. +8
    -42
      src/etc/etc.i386/MAKEDEV

+ 8
- 42
src/etc/etc.i386/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.92 2001/05/13 15:39:23 deraadt Exp $
# $OpenBSD: MAKEDEV,v 1.93 2001/05/14 07:42:18 deraadt Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $ # $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
# #
# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1990 The Regents of the University of California.
@ -222,11 +222,11 @@ usbs)
;; ;;
std) std)
rm -f console drum mem kmem xf86 null zero io tty klog stdin stdout stderr ksyms
rm -f console drum mem kmem null xf86 zero io tty klog stdin stdout stderr ksyms
mknod console c 0 0 mknod console c 0 0
mknod drum c 4 0 ; chmod 640 drum ; chown root.kmem drum mknod drum c 4 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 mem c 2 0 ; chmod 640 mem ; chown root.kmem mem
mknod kmem c 2 1 ; chmod 640 kmem ; chown root.kmem kmem
mknod null c 2 2 ; chmod 666 null mknod null c 2 2 ; chmod 666 null
mknod xf86 c 2 4 ; chmod 600 xf86 ; chown root xf86 mknod xf86 c 2 4 ; chmod 600 xf86 ; chown root xf86
mknod zero c 2 12 ; chmod 666 zero mknod zero c 2 12 ; chmod 666 zero
@ -240,6 +240,7 @@ std)
;; ;;
crypto) crypto)
rm -f crypto
mknod crypto c 70 0 ; chmod 666 crypto mknod crypto c 70 0 ; chmod 666 crypto
;; ;;
@ -449,7 +450,7 @@ vnd*)
tty0*) tty0*)
unit=${i##tty0} unit=${i##tty0}
rm -f com0$unit tty0$unit cua0$unit
rm -f tty0$unit cua0$unit
mknod tty0$unit c 8 $unit mknod tty0$unit c 8 $unit
mknod cua0$unit c 8 $(( $unit + 128 )) mknod cua0$unit c 8 $(( $unit + 128 ))
chown uucp.dialer tty0$unit cua0$unit chown uucp.dialer tty0$unit cua0$unit
@ -583,48 +584,13 @@ lkm)
chmod 640 lkm chmod 640 lkm
;; ;;
#mms*|lms*)
# case $i in
# mms*) name=mms; chr=35;;
# lms*) name=lms; chr=36;;
# esac
# rm -f $name$unit
# mknod $name$unit c $chr $unit
# chown root.wheel $name$unit
# ;;
#pms*)
# rm -f pms${unit}
# rm -f psm${unit}
# mknod pms${unit} c 37 0
# mknod psm${unit} c 37 1
# chown root.wheel pms${unit}
# chown root.wheel psm${unit}
# ;;
#mouse*) # (XXX)
# case $i in
# mouse-*)
# name=${i##mouse-}
# if [ ! -c $name ]; then
# /bin/sh $0 $name # make the appropriate device
# fi
# rm -f mouse
# ln -s $name mouse
# ;;
# *)
# echo no such device: use mouse-\${dev}, e.g. mouse-cua00
# ;;
# esac
# ;;
audio*) audio*)
major=42 major=42
audio=audio$n audio=audio$n
sound=sound$n sound=sound$n
mixer=mixer$n mixer=mixer$n
audioctl=audioctl$n audioctl=audioctl$n
rm -f $audio $sound $mixer $audioctl
rm -f $sound $audio $mixer $audioctl
mknod $sound c $major $unit mknod $sound c $major $unit
mknod $audio c $major $(( $unit + 128 )) mknod $audio c $major $(( $unit + 128 ))
mknod $mixer c $major $(( $unit + 16 )) mknod $mixer c $major $(( $unit + 16 ))
@ -665,7 +631,7 @@ music*)
music=music$n music=music$n
sequencer=sequencer$n sequencer=sequencer$n
major=53 major=53
rm -f $sequencer $music
rm -f $music $sequencer
mknod $music c $major $(( $unit + 0 )) mknod $music c $major $(( $unit + 0 ))
mknod $sequencer c $major $(( $unit + 128 )) mknod $sequencer c $major $(( $unit + 128 ))
chown root.wheel $music $sequencer chown root.wheel $music $sequencer
@ -748,7 +714,7 @@ ss*)
;; ;;
pctr) pctr)
rm -f pctr;
rm -f pctr
mknod pctr c 46 0 mknod pctr c 46 0
chown root.wheel pctr chown root.wheel pctr
chmod 0644 pctr chmod 0644 pctr


Loading…
Cancel
Save