Browse Source

regen

OPENBSD_3_9
otto 19 years ago
parent
commit
8fc8aa7b27
17 changed files with 551 additions and 636 deletions
  1. +35
    -40
      src/etc/etc.alpha/MAKEDEV
  2. +36
    -41
      src/etc/etc.amd64/MAKEDEV
  3. +34
    -39
      src/etc/etc.cats/MAKEDEV
  4. +32
    -37
      src/etc/etc.hp300/MAKEDEV
  5. +33
    -38
      src/etc/etc.hppa/MAKEDEV
  6. +33
    -38
      src/etc/etc.hppa64/MAKEDEV
  7. +36
    -41
      src/etc/etc.i386/MAKEDEV
  8. +29
    -34
      src/etc/etc.luna88k/MAKEDEV
  9. +29
    -34
      src/etc/etc.mac68k/MAKEDEV
  10. +34
    -39
      src/etc/etc.macppc/MAKEDEV
  11. +29
    -34
      src/etc/etc.mvme68k/MAKEDEV
  12. +29
    -34
      src/etc/etc.mvme88k/MAKEDEV
  13. +33
    -38
      src/etc/etc.sgi/MAKEDEV
  14. +33
    -38
      src/etc/etc.sparc/MAKEDEV
  15. +33
    -38
      src/etc/etc.sparc64/MAKEDEV
  16. +29
    -34
      src/etc/etc.vax/MAKEDEV
  17. +34
    -39
      src/etc/etc.zaurus/MAKEDEV

+ 35
- 40
src/etc/etc.alpha/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.alpha/MAKEDEV.md,v 1.27 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -173,34 +173,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -264,8 +261,8 @@ ss*)
M ss$U c 32 $(($U*16)) 640 operator
M nss$U c 32 $(($(($U*16))+1)) 640 operator
M enss$U c 32 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
speaker)
@ -296,8 +293,8 @@ pci)
music*)
M music$U c 42 $U
M sequencer$U c 42 $(($U+128))
MKlist="$MKlist;[ -e music ] || ln -s music$U music"
MKlist="$MKlist;[ -e sequencer ] || ln -s sequencer$U sequencer"
MKlist[${#MKlist[*]}]=";[ -e music ] || ln -s music$U music"
MKlist[${#MKlist[*]}]=";[ -e sequencer ] || ln -s sequencer$U sequencer"
;;
lkm)
@ -313,9 +310,9 @@ hotplug)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 10 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
crypto)
@ -331,10 +328,10 @@ audio*)
M mixer$U c 24 $(($U+16))
M audio$U c 24 $(($U+128))
M audioctl$U c 24 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
usb*)
@ -534,16 +531,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 36
- 41
src/etc/etc.amd64/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.amd64/MAKEDEV.md,v 1.13 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -185,34 +185,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -279,8 +276,8 @@ ss*)
M ss$U c 19 $(($U*16)) 640 operator
M nss$U c 19 $(($(($U*16))+1)) 640 operator
M enss$U c 19 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
speaker)
@ -302,7 +299,7 @@ rmidi*)
radio*)
M radio$U c 76 $U
MKlist="$MKlist;[ -e radio ] || ln -s radio$U radio"
MKlist[${#MKlist[*]}]=";[ -e radio ] || ln -s radio$U radio"
;;
pf*)
@ -320,8 +317,8 @@ pci)
music*)
M music$U c 53 $U
M sequencer$U c 53 $(($U+128))
MKlist="$MKlist;[ -e music ] || ln -s music$U music"
MKlist="$MKlist;[ -e sequencer ] || ln -s sequencer$U sequencer"
MKlist[${#MKlist[*]}]=";[ -e music ] || ln -s music$U music"
MKlist[${#MKlist[*]}]=";[ -e sequencer ] || ln -s sequencer$U sequencer"
;;
lkm)
@ -345,9 +342,9 @@ gpr*)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 22 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
crypto)
@ -371,10 +368,10 @@ audio*)
M mixer$U c 42 $(($U+16))
M audio$U c 42 $(($U+128))
M audioctl$U c 42 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
acpi*)
@ -599,16 +596,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 34
- 39
src/etc/etc.cats/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.cats/MAKEDEV.md,v 1.11 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -168,34 +168,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -245,8 +242,8 @@ ss*)
M ss$U c 29 $(($U*16)) 640 operator
M nss$U c 29 $(($(($U*16))+1)) 640 operator
M enss$U c 29 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
speaker)
@ -268,7 +265,7 @@ tun*)
radio*)
M radio$U c 97 $U
MKlist="$MKlist;[ -e radio ] || ln -s radio$U radio"
MKlist[${#MKlist[*]}]=";[ -e radio ] || ln -s radio$U radio"
;;
pf*)
@ -288,9 +285,9 @@ iop*)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 7 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
crypto)
@ -310,10 +307,10 @@ audio*)
M mixer$U c 36 $(($U+16))
M audio$U c 36 $(($U+128))
M audioctl$U c 36 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
uscanner*)
@ -485,16 +482,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 32
- 37
src/etc/etc.hp300/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.hp300/MAKEDEV.md,v 1.24 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -157,34 +157,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -300,8 +297,8 @@ ss*)
M ss$U c 38 $(($U*16)) 640 operator
M nss$U c 38 $(($(($U*16))+1)) 640 operator
M enss$U c 38 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
*random)
@ -322,9 +319,9 @@ lkm)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 21 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
bpf*)
@ -414,9 +411,9 @@ ct*|mt*)
M r$name$four c $chr $four 660 operator
M r$name$eight c $chr $eight 660 operator
M r$name$twelve c $chr $twelve 660 operator
MKlist="$MKlist;ln r$name$four nr$name$U";: sanity w/pdp11 v7
MKlist="$MKlist;ln r$name$twelve nr$name$eight";: ditto
RMlist="$RMlist nr$name$U nr$name$eight"
MKlist[${#MKlist[*]}]=";ln r$name$four nr$name$U";: sanity w/pdp11 v7
MKlist[${#MKlist[*]}]=";ln r$name$twelve nr$name$eight";: ditto
RMlist[${#RMlist[*]}]="nr$name$U nr$name$eight"
;;
*)
echo bad unit for tape in:
@ -468,16 +465,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 33
- 38
src/etc/etc.hppa/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.hppa/MAKEDEV.md,v 1.25 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -167,34 +167,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -248,8 +245,8 @@ ss*)
M ss$U c 14 $(($U*16)) 640 operator
M nss$U c 14 $(($(($U*16))+1)) 640 operator
M enss$U c 14 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
*random)
@ -274,9 +271,9 @@ lkm)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 16 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
crypto)
@ -292,10 +289,10 @@ audio*)
M mixer$U c 35 $(($U+16))
M audio$U c 35 $(($U+128))
M audioctl$U c 35 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
uscanner*)
@ -498,16 +495,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 33
- 38
src/etc/etc.hppa64/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.hppa64/MAKEDEV.md,v 1.3 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -158,34 +158,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -239,8 +236,8 @@ ss*)
M ss$U c 14 $(($U*16)) 640 operator
M nss$U c 14 $(($(($U*16))+1)) 640 operator
M enss$U c 14 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
*random)
@ -265,9 +262,9 @@ lkm)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 16 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
crypto)
@ -283,10 +280,10 @@ audio*)
M mixer$U c 35 $(($U+16))
M audio$U c 35 $(($U+128))
M audioctl$U c 35 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
lpt*|lpa*)
@ -448,16 +445,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 36
- 41
src/etc/etc.i386/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.i386/MAKEDEV.md,v 1.33 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -188,34 +188,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -282,8 +279,8 @@ ss*)
M ss$U c 19 $(($U*16)) 640 operator
M nss$U c 19 $(($(($U*16))+1)) 640 operator
M enss$U c 19 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
speaker)
@ -305,7 +302,7 @@ rmidi*)
radio*)
M radio$U c 76 $U
MKlist="$MKlist;[ -e radio ] || ln -s radio$U radio"
MKlist[${#MKlist[*]}]=";[ -e radio ] || ln -s radio$U radio"
;;
pf*)
@ -327,8 +324,8 @@ nvram)
music*)
M music$U c 53 $U
M sequencer$U c 53 $(($U+128))
MKlist="$MKlist;[ -e music ] || ln -s music$U music"
MKlist="$MKlist;[ -e sequencer ] || ln -s sequencer$U sequencer"
MKlist[${#MKlist[*]}]=";[ -e music ] || ln -s music$U music"
MKlist[${#MKlist[*]}]=";[ -e sequencer ] || ln -s sequencer$U sequencer"
;;
lkm)
@ -356,9 +353,9 @@ gpio*)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 22 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
crypto)
@ -382,10 +379,10 @@ audio*)
M mixer$U c 42 $(($U+16))
M audio$U c 42 $(($U+128))
M audioctl$U c 42 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
acpi*)
@ -616,16 +613,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 29
- 34
src/etc/etc.luna88k/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.luna88k/MAKEDEV.md,v 1.2 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -150,34 +150,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -226,8 +223,8 @@ ss*)
M ss$U c 42 $(($U*16)) 640 operator
M nss$U c 42 $(($(($U*16))+1)) 640 operator
M enss$U c 42 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
*random)
@ -248,9 +245,9 @@ lkm)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 21 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
bpf*)
@ -378,16 +375,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 29
- 34
src/etc/etc.mac68k/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.mac68k/MAKEDEV.md,v 1.19 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -148,34 +148,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -264,8 +261,8 @@ ss*)
M ss$U c 33 $(($U*16)) 640 operator
M nss$U c 33 $(($(($U*16))+1)) 640 operator
M enss$U c 33 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
*random)
@ -286,9 +283,9 @@ lkm)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 21 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
bpf*)
@ -387,16 +384,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 34
- 39
src/etc/etc.macppc/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.macppc/MAKEDEV.md,v 1.21 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -170,34 +170,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -252,8 +249,8 @@ ss*)
M ss$U c 42 $(($U*16)) 640 operator
M nss$U c 42 $(($(($U*16))+1)) 640 operator
M enss$U c 42 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
*random)
@ -267,7 +264,7 @@ ss*)
radio*)
M radio$U c 76 $U
MKlist="$MKlist;[ -e radio ] || ln -s radio$U radio"
MKlist[${#MKlist[*]}]=";[ -e radio ] || ln -s radio$U radio"
;;
pf*)
@ -291,9 +288,9 @@ hotplug)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 21 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
crypto)
@ -313,10 +310,10 @@ audio*)
M mixer$U c 44 $(($U+16))
M audio$U c 44 $(($U+128))
M audioctl$U c 44 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
apm*)
@ -493,16 +490,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 29
- 34
src/etc/etc.mvme68k/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.mvme68k/MAKEDEV.md,v 1.15 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -153,34 +153,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -237,8 +234,8 @@ ss*)
M ss$U c 42 $(($U*16)) 640 operator
M nss$U c 42 $(($(($U*16))+1)) 640 operator
M enss$U c 42 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
sram0)
@ -271,9 +268,9 @@ flash0)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 21 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
bpf*)
@ -426,16 +423,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 29
- 34
src/etc/etc.mvme88k/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.mvme88k/MAKEDEV.md,v 1.15 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -149,34 +149,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -233,8 +230,8 @@ ss*)
M ss$U c 42 $(($U*16)) 640 operator
M nss$U c 42 $(($(($U*16))+1)) 640 operator
M enss$U c 42 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
sram0)
@ -263,9 +260,9 @@ lkm)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 21 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
bpf*)
@ -394,16 +391,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 33
- 38
src/etc/etc.sgi/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.sgi/MAKEDEV.md,v 1.10 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -153,34 +153,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -228,8 +225,8 @@ ss*)
M ss$U c 34 $(($U*16)) 640 operator
M nss$U c 34 $(($(($U*16))+1)) 640 operator
M enss$U c 34 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
*random)
@ -250,9 +247,9 @@ pci)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 7 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
crypto)
@ -268,10 +265,10 @@ audio*)
M mixer$U c 44 $(($U+16))
M audio$U c 44 $(($U+128))
M audioctl$U c 44 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
wsmouse*)
@ -400,16 +397,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 33
- 38
src/etc/etc.sparc/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.sparc/MAKEDEV.md,v 1.29 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -166,34 +166,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -248,8 +245,8 @@ ss*)
M ss$U c 121 $(($U*16)) 640 operator
M nss$U c 121 $(($(($U*16))+1)) 640 operator
M enss$U c 121 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
*random)
@ -274,9 +271,9 @@ lkm)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 24 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
bpf*)
@ -288,10 +285,10 @@ audio*)
M mixer$U c 69 $(($U+16))
M audio$U c 69 $(($U+128))
M audioctl$U c 69 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
apm*)
@ -527,16 +524,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 33
- 38
src/etc/etc.sparc64/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.sparc64/MAKEDEV.md,v 1.38 2005/08/01 22:22:13 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -180,34 +180,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -265,8 +262,8 @@ ss*)
M ss$U c 59 $(($U*16)) 640 operator
M nss$U c 59 $(($(($U*16))+1)) 640 operator
M enss$U c 59 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
*random)
@ -318,9 +315,9 @@ hotplug)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 24 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
crypto)
@ -336,10 +333,10 @@ audio*)
M mixer$U c 69 $(($U+16))
M audio$U c 69 $(($U+128))
M audioctl$U c 69 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
uscanner*)
@ -599,16 +596,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 29
- 34
src/etc/etc.vax/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.vax/MAKEDEV.md,v 1.21 2005/08/01 22:22:14 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -164,34 +164,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -294,8 +291,8 @@ ss*)
M ss$U c 64 $(($U*16)) 640 operator
M nss$U c 64 $(($(($U*16))+1)) 640 operator
M enss$U c 64 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
*random)
@ -316,9 +313,9 @@ lkm)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 53 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
bpf*)
@ -514,16 +511,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

+ 34
- 39
src/etc/etc.zaurus/MAKEDEV View File

@ -4,8 +4,8 @@
# generated from:
#
# OpenBSD: etc.zaurus/MAKEDEV.md,v 1.7 2005/08/01 22:22:14 deraadt Exp
# OpenBSD: MAKEDEV.common,v 1.20 2005/08/01 22:22:12 deraadt Exp
# OpenBSD: MAKEDEV.mi,v 1.76 2005/10/04 18:33:52 otto Exp
# OpenBSD: MAKEDEV.common,v 1.21 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.mi,v 1.77 2005/10/06 06:43:19 otto Exp
# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
#
#
@ -169,34 +169,31 @@ dodisk2()
}
# M name b/c major minor [mode] [group]
RMlist="rm -f"
MKlist=":"
RMlist[0]="rm -f"
mkl() {
[ "${mklist[$1]}" ] && {
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5"
} || {
mklist[$1]="mknod -m $1 $2 $3 $4 $5"
modes="$modes $1"
}
mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
}
M() {
RMlist="$RMlist $1"
RMlist[${#RMlist[*]}]=$1
mkl ${5-666} $1 $2 $3 $4
G=${6:-wheel}
[ "$7" ] && {
MKlist="$MKlist;chown $7:$G $1"
MKlist[${#MKlist[*]}]=";chown $7:$G $1"
} || {
case $G in
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;;_lkm)g=61;;
wheel)
[ ${#whlist[*]} = 0 ] && whlist[0]=";chgrp wheel"
whlist[${#whlist[*]}]="$1"
;;
operator)
[ ${#oplist[*]} = 0 ] && oplist[0]=";chgrp operator"
oplist[${#oplist[*]}]="$1"
;;
*)
MKlist[${#MKlist[*]}]=";chgrp $G $1";
esac
[ "${grplist[$g]}" ] && {
grplist[$g]="${grplist[$g]} $1"
} || {
groups="$groups $g"
grplist[$g]="chgrp $G $1"
}
}
return 0
}
@ -247,8 +244,8 @@ ss*)
M ss$U c 29 $(($U*16)) 640 operator
M nss$U c 29 $(($(($U*16))+1)) 640 operator
M enss$U c 29 $(($(($U*16))+3)) 640 operator
RMlist="$RMlist scan$U"
MKlist="$MKlist;umask 77;ln -s ss$U scan$U"
RMlist[${#RMlist[*]}]="scan$U"
MKlist[${#MKlist[*]}]=";umask 77;ln -s ss$U scan$U"
;;
uk*)
@ -270,7 +267,7 @@ tun*)
radio*)
M radio$U c 97 $U
MKlist="$MKlist;[ -e radio ] || ln -s radio$U radio"
MKlist[${#MKlist[*]}]=";[ -e radio ] || ln -s radio$U radio"
;;
pf*)
@ -290,9 +287,9 @@ iop*)
;;
fd)
RMlist="mkdir -p fd;$RMlist" n=0
RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
while [ $n -lt 64 ];do M fd/$n c 7 $n;n=$(($n+1));done
MKlist="$MKlist;chmod 555 fd"
MKlist[${#MKlist[*]}]=";chmod 555 fd"
;;
crypto)
@ -316,10 +313,10 @@ audio*)
M mixer$U c 36 $(($U+16))
M audio$U c 36 $(($U+128))
M audioctl$U c 36 $(($U+192))
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio"
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer"
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound"
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl"
MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
;;
apm*)
@ -491,16 +488,14 @@ esac
done
}
R "$@"
list="$RMlist"
for mode in $modes; do
list="$list;${mklist[$mode]}"
done
for group in $groups; do
list="$list;${grplist[$group]}"
done
list="$list;$MKlist"
if [ "$eo" = "echo" ]; then
$eo "$list"
{
echo -n ${RMlist[*]}
echo -n ${mklist[*]}
echo -n ${MKlist[*]}
echo -n ${whlist[*]}
echo ${oplist[*]}
} | if [ "$eo" = "echo" ]; then
cat
else
echo "$list" | sh
sh
fi

Loading…
Cancel
Save