|
@ -1,5 +1,5 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# $OpenBSD: MAKEDEV,v 1.7 2002/05/30 06:46:13 deraadt Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.8 2002/06/09 05:58:39 todd Exp $ |
|
|
# |
|
|
# |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
# Copyright (c) 1990 The Regents of the University of California. |
|
|
# All rights reserved. |
|
|
# All rights reserved. |
|
@ -21,7 +21,7 @@ |
|
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
|
|
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
|
|
# |
|
|
# |
|
|
# from: @(#)MAKEDEV 5.2 (Berkeley) 6/22/90 |
|
|
# from: @(#)MAKEDEV 5.2 (Berkeley) 6/22/90 |
|
|
# $NetBSD: MAKEDEV,v 1.17 1996/02/03 15:02:42 briggs Exp $ |
|
|
|
|
|
|
|
|
# $NetBSD: MAKEDEV,v 1.17 1996/02/03 15:02:42 briggs Exp $ |
|
|
# |
|
|
# |
|
|
# Device "make" file. Valid arguments: |
|
|
# Device "make" file. Valid arguments: |
|
|
# all makes all known devices, including local devices. |
|
|
# all makes all known devices, including local devices. |
|
@ -148,7 +148,7 @@ case $i in |
|
|
|
|
|
|
|
|
all) |
|
|
all) |
|
|
sh $this std fd |
|
|
sh $this std fd |
|
|
sh $this wd0 wd1 wd2 wd3 |
|
|
|
|
|
|
|
|
sh $this wd0 wd1 wd2 wd3 |
|
|
sh $this sd0 sd1 sd2 sd3 st0 st1 cd0 cd1 |
|
|
sh $this sd0 sd1 sd2 sd3 st0 st1 cd0 cd1 |
|
|
sh $this vnd0 vnd1 vnd2 vnd3 |
|
|
sh $this vnd0 vnd1 vnd2 vnd3 |
|
|
sh $this ccd0 ccd1 ccd2 ccd3 |
|
|
sh $this ccd0 ccd1 ccd2 ccd3 |
|
@ -168,7 +168,7 @@ all) |
|
|
|
|
|
|
|
|
ramdisk) |
|
|
ramdisk) |
|
|
sh $this std |
|
|
sh $this std |
|
|
sh $this wd0 wd1 wd2 wd3 |
|
|
|
|
|
|
|
|
sh $this wd0 wd1 wd2 wd3 |
|
|
sh $this sd0 sd1 sd2 sd3 sd4 st0 st1 cd0 cd1 |
|
|
sh $this sd0 sd1 sd2 sd3 sd4 st0 st1 cd0 cd1 |
|
|
sh $this rd0 |
|
|
sh $this rd0 |
|
|
sh $this random |
|
|
sh $this random |
|
@ -367,7 +367,7 @@ st*) |
|
|
st*) name=st; chr=20; blk=5;; |
|
|
st*) name=st; chr=20; blk=5;; |
|
|
esac |
|
|
esac |
|
|
rm -f $name$unit n$name$unit e$name$unit en$name$unit \ |
|
|
rm -f $name$unit n$name$unit e$name$unit en$name$unit \ |
|
|
r$name$unit nr$name$unit er$name$unit enr$name$unit |
|
|
|
|
|
|
|
|
r$name$unit nr$name$unit er$name$unit enr$name$unit |
|
|
case $unit in |
|
|
case $unit in |
|
|
0|1|2|3|4|5|6) |
|
|
0|1|2|3|4|5|6) |
|
|
mknod ${name}${unit} b $blk $(( $unit * 16 + 0 )) |
|
|
mknod ${name}${unit} b $blk $(( $unit * 16 + 0 )) |
|
@ -381,11 +381,11 @@ st*) |
|
|
chown root.operator ${name}${unit} n${name}${unit} \ |
|
|
chown root.operator ${name}${unit} n${name}${unit} \ |
|
|
e$name$unit en$name$unit \ |
|
|
e$name$unit en$name$unit \ |
|
|
r${name}${unit} nr${name}${unit} \ |
|
|
r${name}${unit} nr${name}${unit} \ |
|
|
er${name}${unit} enr${name}${unit} |
|
|
|
|
|
|
|
|
er${name}${unit} enr${name}${unit} |
|
|
chmod 660 ${name}${unit} n${name}${unit} \ |
|
|
chmod 660 ${name}${unit} n${name}${unit} \ |
|
|
e$name$unit en$name$unit \ |
|
|
e$name$unit en$name$unit \ |
|
|
r${name}${unit} nr${name}${unit} \ |
|
|
r${name}${unit} nr${name}${unit} \ |
|
|
er${name}${unit} enr${name}${unit} |
|
|
|
|
|
|
|
|
er${name}${unit} enr${name}${unit} |
|
|
;; |
|
|
;; |
|
|
*) |
|
|
*) |
|
|
echo bad unit for tape in: $i |
|
|
echo bad unit for tape in: $i |
|
@ -499,12 +499,12 @@ utty*) |
|
|
chmod 660 utty$unit |
|
|
chmod 660 utty$unit |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ttyCcfg) |
|
|
ttyCcfg) |
|
|
major=67 |
|
|
major=67 |
|
|
minor=255 |
|
|
minor=255 |
|
|
rm -f ttyCcfg |
|
|
rm -f ttyCcfg |
|
|
mknod ttyCcfg c $major $minor |
|
|
|
|
|
|
|
|
mknod ttyCcfg c $major $minor |
|
|
chown root.wheel ttyCcfg |
|
|
chown root.wheel ttyCcfg |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
@ -611,7 +611,7 @@ wsmux|wsmouse|wskbd) |
|
|
|
|
|
|
|
|
wskbd*) |
|
|
wskbd*) |
|
|
unit=${i##*[a-z]} |
|
|
unit=${i##*[a-z]} |
|
|
rm -f wskbd${unit} |
|
|
|
|
|
|
|
|
rm -f wskbd${unit} |
|
|
mknod wskbd${unit} c 68 ${unit} |
|
|
mknod wskbd${unit} c 68 ${unit} |
|
|
# XXX |
|
|
# XXX |
|
|
chmod 660 wskbd${unit} |
|
|
chmod 660 wskbd${unit} |
|
@ -619,7 +619,7 @@ wskbd*) |
|
|
;; |
|
|
;; |
|
|
wsmouse*) |
|
|
wsmouse*) |
|
|
unit=${i##*[a-z]} |
|
|
unit=${i##*[a-z]} |
|
|
rm -f wsmouse${unit} |
|
|
|
|
|
|
|
|
rm -f wsmouse${unit} |
|
|
mknod wsmouse${unit} c 69 ${unit} |
|
|
mknod wsmouse${unit} c 69 ${unit} |
|
|
# XXX |
|
|
# XXX |
|
|
chmod 660 wsmouse${unit} |
|
|
chmod 660 wsmouse${unit} |
|
@ -628,8 +628,8 @@ wsmouse*) |
|
|
|
|
|
|
|
|
xfs*) |
|
|
xfs*) |
|
|
rm -f xfs$unit |
|
|
rm -f xfs$unit |
|
|
mknod xfs$unit c 51 $unit |
|
|
|
|
|
chmod 600 xfs$unit |
|
|
|
|
|
|
|
|
mknod xfs$unit c 51 $unit |
|
|
|
|
|
chmod 600 xfs$unit |
|
|
chown root.wheel xfs$unit |
|
|
chown root.wheel xfs$unit |
|
|
;; |
|
|
;; |
|
|
|
|
|
|
|
|