Collapse some cases together.

This commit is contained in:
mycroft 1995-12-08 06:55:38 +00:00
parent cc119bf4a3
commit 82b57c7135

View File

@ -239,9 +239,9 @@ ch*)
ch*) name=ch; chr=17;;
esac
rm -f $name$unit
mknod ${name}${unit} c $chr `expr $unit '*' 16 + 0`
chgrp operator ${name}${unit}
chmod 640 ${name}${unit}
mknod $name$unit c $chr `expr $unit '*' 16 + 0`
chgrp operator $name$unit
chmod 640 $name$unit
umask 77
;;
@ -261,33 +261,26 @@ cd*|mcd*)
umask 77
;;
lpa*)
unit=`expr $i : 'lpa\(.*\)'`
rm -f lpa$unit
mknod lpa$unit c 16 `expr $unit + 128`
chown root.wheel lpa$unit
lpt*|lpa*)
unit=`expr $i : '...\(.*\)'`
case $i in
lpt*) name=lpt; flags=0;;
lpa*) name=lpa; flags=128;;
esac
rm -f $name$unit
mknod $name$unit c 16 `expr $unit + $flags`
chown root.wheel $name$unit
;;
lpt*)
unit=`expr $i : 'lpt\(.*\)'`
rm -f lpt$unit
mknod lpt$unit c 16 $unit
chown root.wheel lpt$unit
;;
bpf*)
unit=`expr $i : 'bpf\(.*\)'`
rm -f bpf$unit
mknod bpf$unit c 23 $unit
chown root.wheel bpf$unit
;;
tun*)
unit=`expr $i : 'tun\(.*\)'`
rm -f tun$unit
mknod tun$unit c 40 $unit
chmod 600 tun$unit
chown root.wheel tun$unit
bpf*|tun*)
unit=`expr $i : '...\(.*\)'`
case $i in
bpf*) name=bpf; chr=23;;
tun*) name=tun; chr=40;;
esac
rm -f $name$unit
mknod $name$unit c $chr $unit
chown root.wheel $name$unit
;;
speaker) # (XXX - installed)
@ -303,25 +296,16 @@ lkm)
chmod 640 lkm
;;
mms*)
unit=`expr $i : 'mms\(.*\)'`
rm -f mms$unit
mknod mms$unit c 35 $unit
chown root.wheel mms$unit
;;
lms*)
unit=`expr $i : 'lms\(.*\)'`
rm -f lms$unit
mknod lms$unit c 36 $unit
chown root.wheel lms$unit
;;
pms*)
unit=`expr $i : 'pms\(.*\)'`
rm -f pms$unit
mknod pms$unit c 37 $unit
chown root.wheel pms$unit
mms*|lms*|pms*)
unit=`expr $i : '.ms\(.*\)'`
case $i in
mms*) name=mms; chr=35;;
lms*) name=lms; chr=36;;
pms*) name=pms; chr=37;;
esac
rm -f $name$unit
mknod $name$unit c $chr $unit
chown root.wheel $name$unit
;;
mouse*) # (XXX)