- remove redundant wscons devices in target "all"

- add wsmux devices
- make correct md devices
This commit is contained in:
tsutsui 2002-06-27 16:22:35 +00:00
parent 49cc9b7cd6
commit daf88b8ce1
1 changed files with 34 additions and 9 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.21 2002/06/19 15:08:40 wiz Exp $
# $NetBSD: MAKEDEV,v 1.22 2002/06/27 16:22:35 tsutsui Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -103,7 +103,7 @@ all)
makedev std wscons fd gdrom0 maple
makedev scif0 sci0 pty0
makedev vnd0 vnd1
makedev ttyE0 ttyEcfg wsmouse0 wskbd0 bpf0 bpf1 bpf2 bpf3 tun0 tun1 ipl
makedev bpf0 bpf1 bpf2 bpf3 tun0 tun1 ipl
makedev ccd0 ccd1 ccd2 ccd3 md0 random
makedev lkm audio local
makedev clockctl
@ -120,6 +120,8 @@ wscons)
makedev ttyE0 ttyE1 ttyE2 ttyE3 ttyE4 ttyE5 ttyE6 ttyE7
makedev wsmouse0 wsmouse1 wsmouse2 wsmouse3
makedev wskbd0 wskbd1 wskbd2 wskbd3
makedev wsmux0 wsmux1 wsmux2 wsmux3
makedev wsmouse wskbd
makedev ttyEcfg
;;
@ -167,13 +169,11 @@ md*)
esac
rm -f $name$unit? r$name$unit?
mknod ${name}${unit}a b $blk $(($unit * 8 + 0))
mknod ${name}${unit}b b $blk $(($unit * 8 + 1))
mknod ${name}${unit}c b $blk $(($unit * 8 + 2))
mknod r${name}${unit}a c $chr $(($unit * 8 + 0))
mknod r${name}${unit}b c $chr $(($unit * 8 + 1))
mknod r${name}${unit}c c $chr $(($unit * 8 + 2))
chgrp operator $name$unit? r$name$unit?
chmod 640 $name$unit? r$name$unit?
mknod ${name}${unit}d b $blk $(($unit * 8 + 3))
# mknod r${name}${unit}a c $chr $(($unit * 8 + 0))
# mknod r${name}${unit}d c $chr $(($unit * 8 + 3))
chgrp operator $name$unit? #r$name$unit?
chmod 640 $name$unit? #r$name$unit?
;;
ccd*|fd*|sd*|vnd*|wd*)
@ -354,6 +354,31 @@ lkm)
chmod 640 lkm
;;
wsmouse)
rm -f wsmouse
mknod wsmouse c 56 0
chmod 600 wsmouse
;;
wskbd)
rm -f wskbd
mknod wskbd c 56 1
chmod 600 wskbd
;;
wsmux*)
unit=${i#wsmux}
unitctl=$(($unit + 128))
wsmux=wsmux$unit
wsmuxctl=wsmuxctl$unit
major=56
rm -f $wsmux $wsmuxctl
mknod $wsmux c $major $unit
chmod 600 $wsmux
mknod $wsmuxctl c $major $unitctl
chmod 200 $wsmuxctl
;;
wskbd*)
unit=${i#wskbd}
wskbd=wskbd$unit