mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
$units is the canonical name for the number of units to create; use it.
PR: 29971 Submitted by: Joseph Mallett <jmallett@xMach.org>
This commit is contained in:
parent
d4b0f8e25a
commit
81b83ee95d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82236
20
etc/MAKEDEV
20
etc/MAKEDEV
@ -1092,9 +1092,9 @@ nmdm*)
|
||||
;;
|
||||
|
||||
bpf*)
|
||||
nbpf=`expr $i : 'bpf\(.*\)$'`
|
||||
units=`expr $i : 'bpf\(.*\)$'`
|
||||
unit=0
|
||||
while [ $unit -le $nbpf ]; do
|
||||
while [ $unit -le $units ]; do
|
||||
mknod bpf$unit c 23 `unit2minor $unit`
|
||||
unit=$(($unit + 1))
|
||||
done
|
||||
@ -1177,9 +1177,9 @@ ttym?)
|
||||
# the manual that comes with the system.
|
||||
ttyA*)
|
||||
major=68
|
||||
nports=`expr $i : 'ttyA\(.*\)$'`
|
||||
units=`expr $i : 'ttyA\(.*\)$'`
|
||||
port=1
|
||||
while [ $port -le $nports ]; do
|
||||
while [ $port -le $units ]; do
|
||||
minor=$(expr $port - 1)
|
||||
name=$(printf %02d $port)
|
||||
mknod ttyA$name c $major $minor
|
||||
@ -1194,9 +1194,9 @@ ttyA*)
|
||||
cuaA*)
|
||||
umask 7
|
||||
major=68
|
||||
nports=`expr $i : 'cuaA\(.*\)$'`
|
||||
units=`expr $i : 'cuaA\(.*\)$'`
|
||||
port=1
|
||||
while [ $port -le $nports ]; do
|
||||
while [ $port -le $units ]; do
|
||||
minor=$(expr $port - 1)
|
||||
name=$(printf %02d $port)
|
||||
mknod cuaA$name c $major `expr $minor + 128` uucp:dialer
|
||||
@ -1590,18 +1590,18 @@ bktr?)
|
||||
;;
|
||||
|
||||
tun*)
|
||||
ntun=`expr $i : 'tun\(.*\)$'`
|
||||
units=`expr $i : 'tun\(.*\)$'`
|
||||
unit=0
|
||||
while [ $unit -le $ntun ]; do
|
||||
while [ $unit -le $units ]; do
|
||||
mknod tun$unit c 52 `unit2minor $unit`
|
||||
unit=$(($unit + 1))
|
||||
done
|
||||
;;
|
||||
|
||||
tap*)
|
||||
ntap=`expr $i : 'tap\(.*\)$'`
|
||||
units=`expr $i : 'tap\(.*\)$'`
|
||||
unit=0
|
||||
while [ $unit -le $ntap ]; do
|
||||
while [ $unit -le $units ]; do
|
||||
mknod tap$unit c 149 `unit2minor $unit` root:network
|
||||
unit=$(($unit + 1))
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user