]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
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 ee5c3260ce6f45c79e44f794d3e83a354eb0ce34..b79858b75658f3e9dd97f8afe54334a6019f9dbf 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 fadb6d714e6a41bb8f629f98954829812a5da936..6328407e81a5474578739add7fe9360b8ef59a72 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