Author: glen
Date: Sun Mar 18 20:19:42 2012
New Revision: 12501

Modified:
   geninitrd/trunk/mod-udev.sh
Log:
when checing dmsetup binary output, check it exists first

Modified: geninitrd/trunk/mod-udev.sh
==============================================================================
--- geninitrd/trunk/mod-udev.sh (original)
+++ geninitrd/trunk/mod-udev.sh Sun Mar 18 20:19:42 2012
@@ -61,7 +61,8 @@
 
        local dir dmsetup
        for dir in $initrd_dir /sbin; do
-               if [ "$($dir/dmsetup udevcookies 2>&1|grep -c 'Command not 
supported')" -eq 0 ]; then
+               if [ -x "$dir/dmsetup" ] &&
+                       [ "$($dir/dmsetup udevcookies 2>&1 | grep -c 'Command 
not supported')" -eq 0 ]; then
                        dmsetup=$dir/dmsetup
                        break
                fi
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to