tree 9c01fd2b1285b5340d8e1e7e29397897536bf5e4
parent b68650fd3f31d47426a2b1c6cfad904880258423
author [EMAIL PROTECTED] <[EMAIL PROTECTED]> Tue, 19 Apr 2005 12:00:19 -0700
committer Greg KH <[EMAIL PROTECTED]> Tue, 19 Apr 2005 12:00:19 -0700
[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 <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
aoe/udev-install.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: Documentation/aoe/udev-install.sh
===================================================================
--- cce16ef0a7fb6cce6238f55f219134e900811943/Documentation/aoe/udev-install.sh
(mode:100644 sha1:861a27f98771d152be6344c014a57d0a657aad20)
+++ 9c01fd2b1285b5340d8e1e7e29397897536bf5e4/Documentation/aoe/udev-install.sh
(mode:100644 sha1:6449911c6a717d1b9ab8117c078e4f5f833b8557)
@@ -23,4 +23,8 @@
# /etc/udev/rules.d
#
rules_d="`sed -n '/^udev_rules=/{ s!udev_rules=!!; s!\"!!g; p; }' $conf`"
-test "$rules_d" && sh -xc "cp `dirname $0`/udev.txt $rules_d/60-aoe.rules"
+if test -z "$rules_d" || test ! -d "$rules_d"; then
+ echo "$me Error: cannot find udev rules directory" 1>&2
+ exit 1
+fi
+sh -xc "cp `dirname $0`/udev.txt $rules_d/60-aoe.rules"
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html