Added target to make maple direct access device nodes.
This commit is contained in:
parent
e90e316b11
commit
9e4abc4202
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.3 2001/03/28 20:55:27 marcus Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.4 2001/05/26 19:06:09 marcus Exp $
|
||||
#
|
||||
# Copyright (c) 1990 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
@ -82,7 +82,7 @@ do
|
||||
case $i in
|
||||
|
||||
all)
|
||||
sh $0 std fd gdrom0
|
||||
sh $0 std fd gdrom0 maple
|
||||
sh $0 scif0 sci0 pty0 pty1
|
||||
sh $0 vnd0 vnd1
|
||||
sh $0 ttyE0 ttyEcfg wsmouse0 wskbd0 bpf0 bpf1 bpf2 bpf3 tun0 tun1 ipl
|
||||
@ -103,6 +103,11 @@ wscons)
|
||||
sh $0 ttyEcfg
|
||||
;;
|
||||
|
||||
maple)
|
||||
sh $0 mapleA mapleA1 mapleA2 mapleB mapleB1 mapleB2
|
||||
sh $0 mapleC mapleC1 mapleC2 mapleD mapleD1 mapleD2
|
||||
;;
|
||||
|
||||
std)
|
||||
rm -f console drum mem kmem null zero io tty klog stdin stdout stderr
|
||||
mknod console c 0 0
|
||||
@ -263,6 +268,21 @@ gdrom*|cd*|mcd*)
|
||||
chmod 640 $name$unit? r$name$unit?
|
||||
;;
|
||||
|
||||
maple*)
|
||||
chr=58
|
||||
case $i in
|
||||
mapleA*) name="mapleA"; unit=0;;
|
||||
mapleB*) name="mapleB"; unit=1;;
|
||||
mapleC*) name="mapleC"; unit=2;;
|
||||
mapleD*) name="mapleD"; unit=3;;
|
||||
esac
|
||||
subunit=${i#$name}
|
||||
rm -f $name$subunit
|
||||
mknod $name$subunit c $chr $(($unit * 8 + 0$subunit))
|
||||
chown root.wheel $name$subunit
|
||||
chmod 600 $name$subunit
|
||||
;;
|
||||
|
||||
bpf*|tun*|mms*|lms*|pms*|joy*)
|
||||
case $i in
|
||||
bpf*) name=bpf; unit=${i#bpf}; chr=23;;
|
||||
|
Loading…
Reference in New Issue
Block a user