]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - Documentation/aoe/udev-install.sh
PCI hotplug: shpchp: replace printk with dev_printk
[linux-2.6-omap-h63xx.git] / Documentation / aoe / udev-install.sh
index 861a27f98771d152be6344c014a57d0a657aad20..15e86f58c0365974f8e550b74632010c951a1972 100644 (file)
@@ -23,4 +23,11 @@ fi
 # /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" ; then
+       rules_d=/etc/udev/rules.d
+fi
+if 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"