|
@ -1,6 +1,6 @@ |
|
|
#!/bin/sh - |
|
|
#!/bin/sh - |
|
|
# |
|
|
# |
|
|
# $OpenBSD: MAKEDEV,v 1.21 1997/04/29 17:26:28 niklas Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: MAKEDEV,v 1.22 1997/04/30 08:17:56 grr 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. |
|
@ -337,12 +337,12 @@ ccd*|sd*|xd*|xy*|cd*|vnd*) |
|
|
done |
|
|
done |
|
|
fi |
|
|
fi |
|
|
rm -f $name$unit? r$name$unit? |
|
|
rm -f $name$unit? r$name$unit? |
|
|
minor=`mult $unit 8` |
|
|
|
|
|
|
|
|
minor=`mult $unit 16` |
|
|
for slice in a b c d e f g h i j k l m n o p |
|
|
for slice in a b c d e f g h i j k l m n o p |
|
|
do |
|
|
do |
|
|
dev=$name$unit$slice |
|
|
dev=$name$unit$slice |
|
|
mknod $dev b $blk $minor |
|
|
mknod $dev b $blk $minor |
|
|
mknod r$dev b $chr $minor |
|
|
|
|
|
|
|
|
mknod r$dev c $chr $minor |
|
|
minor=`add $minor 1` |
|
|
minor=`add $minor 1` |
|
|
done |
|
|
done |
|
|
chown root.operator $name$unit? r$name$unit? |
|
|
chown root.operator $name$unit? r$name$unit? |
|
|