Make check scripts for 90dmraid and 90dmsetup actually work.
authorVictor Lowther <victor.lowther@gmail.com>
Mon, 25 May 2009 16:52:17 +0000 (11:52 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Mon, 25 May 2009 16:52:17 +0000 (11:52 -0500)
modules.d/90dmraid/check
modules.d/90dmsetup/check

index ee5c326..b79858b 100755 (executable)
@@ -1,11 +1,8 @@
 #!/bin/sh
-
-[[ $dracutfunctions ]] && . $dracutfunctions
-
-dmraid=$(find_binary dmraid) || exit 1
+which dmraid >/dev/null 2>&1 || exit 1
 
 if [ "$1" = "-h" ]; then
-    $dmraid -r | grep -q ok || exit 1
+    dmraid -r | grep -q ok || exit 1
 fi
 
 exit 0
\ No newline at end of file
index fadb6d7..6328407 100755 (executable)
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-[[ $dracutfunctions ]] && . $dracutfunctions
-
-[[ -x /lib/udev/devkit-disks-dm-export ]] || exit 1
+[ -x /lib/udev/devkit-disks-dm-export ] || exit 1
 
 exit 0