From fa9763f52a4eec2cf0c762faa379052a96ac400d Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Mon, 25 May 2009 11:52:17 -0500 Subject: [PATCH] Make check scripts for 90dmraid and 90dmsetup actually work. --- modules.d/90dmraid/check | 7 ++----- modules.d/90dmsetup/check | 4 +--- 2 files changed, 3 insertions(+), 8 deletions(-) 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 -- 2.47.3