#! /bin/sh # aoe-mkshelf - device nodes for one shelf without udev # Copyright 2009, CORAID, Inc., and licensed under GPL v.2. zero=`basename $0` if test "$#" != "2"; then echo "Usage: $zero {dir} {shelfaddress}" 1>&2 echo " n_partitions=16 $zero {dir} {shelfaddress}" 1>&2 exit 1 fi dyn=/sys/module/aoe/parameters/aoe_dyndevs if test -r "$dyn" && test "`cat $dyn`" = 1; then cat 1>&2 <&2 <