[PATCH] aoe 4/12: handle distros that have a udev rules

handle distros that have a udev rules file instead of dir

Signed-off-by: Ed L. Cashin <ecashin@coraid.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>


authored by ecashin@coraid.com and committed by Greg KH fa83c2dd b68650fd

+5 -1
+5 -1
Documentation/aoe/udev-install.sh
··· 23 23 # /etc/udev/rules.d 24 24 # 25 25 rules_d="`sed -n '/^udev_rules=/{ s!udev_rules=!!; s!\"!!g; p; }' $conf`" 26 - test "$rules_d" && sh -xc "cp `dirname $0`/udev.txt $rules_d/60-aoe.rules" 26 + if test -z "$rules_d" || test ! -d "$rules_d"; then 27 + echo "$me Error: cannot find udev rules directory" 1>&2 28 + exit 1 29 + fi 30 + sh -xc "cp `dirname $0`/udev.txt $rules_d/60-aoe.rules"