From: Victor Lowther Date: Mon, 25 May 2009 16:52:17 +0000 (-0500) Subject: Make check scripts for 90dmraid and 90dmsetup actually work. X-Git-Tag: 0.1~174 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa9763f52a4eec2cf0c762faa379052a96ac400d;p=thirdparty%2Fdracut.git Make check scripts for 90dmraid and 90dmsetup actually work. --- diff --git a/modules.d/90dmraid/check b/modules.d/90dmraid/check index ee5c3260c..b79858b75 100755 --- a/modules.d/90dmraid/check +++ b/modules.d/90dmraid/check @@ -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 diff --git a/modules.d/90dmsetup/check b/modules.d/90dmsetup/check index fadb6d714..6328407e8 100755 --- a/modules.d/90dmsetup/check +++ b/modules.d/90dmsetup/check @@ -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