3 if test "$#" != "2"; then
4 echo "Usage: sh `basename $0` {dir} {shelfaddress}" 1>&2
5 echo " n_partitions=16 sh `basename $0` {dir} {shelfaddress}" 1>&2
8 n_partitions=${n_partitions:-16}
15 minor=`echo 10 \* $shelf \* $n_partitions | bc`
16 endp=`echo $n_partitions - 1 | bc`
17 for slot in `seq 0 9`; do
18 for part in `seq 0 $endp`; do
20 test "$part" != "0" && name=${name}p$part
22 mknod -m 0660 $dir/$name b $MAJOR $minor
24 minor=`expr $minor + 1`