Browse Source

pf0 -> pf

mcd0 & speaker -> crept in, not on sparc64!
if [ "$os" = "SunOS" ]; then .. output script runnable on SunOS
OPENBSD_3_0
todd 23 years ago
parent
commit
4a3c7ec79d
1 changed files with 26 additions and 11 deletions
  1. +26
    -11
      src/etc/etc.sparc64/MAKEDEV

+ 26
- 11
src/etc/etc.sparc64/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: MAKEDEV,v 1.8 2001/09/04 21:25:17 todd Exp $
# $OpenBSD: MAKEDEV,v 1.9 2001/09/05 13:45:30 todd Exp $
# #
# Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> # Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
# All rights reserved. # All rights reserved.
@ -201,7 +201,7 @@ floppy)
ramdisk) ramdisk)
R std lkm random R std lkm random
R fd0 rd0 wd0 wd1 wd2 wd3 bpf0 R fd0 rd0 wd0 wd1 wd2 wd3 bpf0
R sd0 sd1 sd2 sd3 st0 st1 cd0 cd1 mcd0
R sd0 sd1 sd2 sd3 st0 st1 cd0 cd1
;; ;;
std)M console c 0 0 600 std)M console c 0 0 600
M tty c 2 0 M tty c 2 0
@ -242,7 +242,6 @@ cua[a-z])
esac esac
M cua$unit c 12 $(($n+128)) wheel uucp M cua$unit c 12 $(($n+128)) wheel uucp
;; ;;
speaker)M speaker c 27 0 600;;
mouse*)name=${i##mouse-} mouse*)name=${i##mouse-}
if [ ! -c $name ]; then if [ ! -c $name ]; then
$0 $name # make the appropriate device $0 $name # make the appropriate device
@ -345,9 +344,8 @@ vnd*)
uk*)M uk$U c 60 $U 640 operator;; uk*)M uk$U c 60 $U 640 operator;;
ss*) ss*)
M ss$U c 59 $U 440 operator M ss$U c 59 $U 440 operator
rm -f scan$U
umask 77
ln -s ss$U scan$U;;
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U";;
st*) st*)
n=$(($U*16)) n=$(($U*16))
for pre in " " n e en for pre in " " n e en
@ -374,7 +372,8 @@ audio*)
M mixer$u c 69 $(($U+16)) M mixer$u c 69 $(($U+16))
M audio$u c 69 $(($U+128)) M audio$u c 69 $(($U+128))
M audioctl$u c 69 $(($U+192));; M audioctl$u c 69 $(($U+192));;
pf*)M pf$U c 73 $U 600;;
pf*)
M pf c 73 0 600;;
altq) altq)
RMlist="mkdir -p altq;$RMlist" RMlist="mkdir -p altq;$RMlist"
for d in altq cbq wfq afm fifoq red rio localq hfsc cdnr blue priq; do for d in altq cbq wfq afm fifoq red rio localq hfsc cdnr blue priq; do
@ -395,11 +394,27 @@ esac
done done
} }
R "$@" R "$@"
$eo eval $RMlist
if [ "$os" = "SunOS" ]; then
eo=transform
transform() {
case $mode in
600)mask=077;;
640)mask=027;;
660)mask=007;;
644)mask=022;;
666)mask=0;;
440)mask=227;;
esac
echo eval `echo "$@"|sed \
's/mknod -m \([0-9]*\) /umask '$mask';mknod /;s/-m [0-9]* //g;\
s/operator/5/g;s/root.kmem/root.2/g;s/root\./root:/g'`
}
fi
$eo eval "$RMlist"
for mode in $modes; do for mode in $modes; do
$eo eval ${mklist[$mode]}
$eo eval "${mklist[$mode]}"
done done
for group in $groups; do for group in $groups; do
$eo eval ${grplist[$groupl]}
$eo eval "${grplist[$groupl]}"
done done
$eo eval $MKlist
$eo eval "$MKlist"

Loading…
Cancel
Save