#!/bin/sh # aoe-mkdevs - make static device nodes on systems without udev # Copyright 2008, Coraid, Inc., and licensed under GPL v.2. n_shelves=${n_shelves:-10} n_partitions=${n_partitions:-16} if test "$#" != "1"; then echo "Usage: `basename $0` {dir}" 1>&2 echo " n_partitions=16 `basename $0` {dir}" 1>&2 exit 1 fi dir=$1 zero="`basename $0`" MAJOR=152 dyn=/sys/module/aoe/parameters/aoe_dyndevs if test -r "$dyn" && test "`cat $dyn`" = 1; then cat 1>&2 <&2 <