|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: MAKEDEV,v 1.17 1998/11/19 08:18:58 dugsong Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.18 2000/03/22 07:34:30 niklas Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.3 1996/01/07 16:53:15 ragge Exp $ |
|
|
# $NetBSD: MAKEDEV,v 1.3 1996/01/07 16:53:15 ragge Exp $ |
|
|
# |
|
|
# |
|
|
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 |
|
|
# @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 |
|
@ -128,11 +128,17 @@ ht*|tm*|tms*|ts*|ut*|st*) |
|
|
mknod r$name$four c $chr $four |
|
|
mknod r$name$four c $chr $four |
|
|
mknod r$name$eight c $chr $eight |
|
|
mknod r$name$eight c $chr $eight |
|
|
mknod r$name$twelve c $chr $twelve |
|
|
mknod r$name$twelve c $chr $twelve |
|
|
|
|
|
chown root.operator {,n,r,nr}$name{$unit,$eight} |
|
|
|
|
|
chown root.operator {,r}$name{$four,$twelve} |
|
|
|
|
|
chmod 660 {,n,r,nr}$name{$unit,$eight} |
|
|
|
|
|
chmod 660 {,r}$name{$four,$twelve} |
|
|
if [ $i = ut ] |
|
|
if [ $i = ut ] |
|
|
then |
|
|
then |
|
|
rm -f $name$twenty r$name$twenty |
|
|
rm -f $name$twenty r$name$twenty |
|
|
mknod $name$twenty b $blk $twenty |
|
|
mknod $name$twenty b $blk $twenty |
|
|
mknod r$name$twenty c $chr $twenty |
|
|
mknod r$name$twenty c $chr $twenty |
|
|
|
|
|
chown root.operator {,r}$name$twenty |
|
|
|
|
|
chmod 660 {,r}$name$twenty |
|
|
fi |
|
|
fi |
|
|
if [ ! -e rmt$eight ] # compatibility stuff |
|
|
if [ ! -e rmt$eight ] # compatibility stuff |
|
|
then |
|
|
then |
|
@ -185,6 +191,10 @@ mt*) |
|
|
mknod rmt20 c $chr $twenty |
|
|
mknod rmt20 c $chr $twenty |
|
|
mknod nmt16 b $blk $twenty ;: ditto |
|
|
mknod nmt16 b $blk $twenty ;: ditto |
|
|
mknod nrmt16 c $chr $twenty ;: ditto |
|
|
mknod nrmt16 c $chr $twenty ;: ditto |
|
|
|
|
|
chown root.operator {,n,r,nr}mt{8,16} |
|
|
|
|
|
chown root.operator {,r}mt{12,20} |
|
|
|
|
|
chmod 660 {,n,r,nr}mt{8,16} |
|
|
|
|
|
chmod 660 {,r}mt{12,20} |
|
|
;; |
|
|
;; |
|
|
*) |
|
|
*) |
|
|
echo bad unit for tape in: $1 |
|
|
echo bad unit for tape in: $1 |
|
|