From: Harald Hoyer Date: Fri, 8 Jun 2012 10:42:12 +0000 (+0200) Subject: mdraid/md-shutdown.sh: check for presence of mdadm X-Git-Tag: 020~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4692ce3889d5e165a9aa51db7732baf2996fd7a;p=thirdparty%2Fdracut.git mdraid/md-shutdown.sh: check for presence of mdadm --- diff --git a/modules.d/90mdraid/md-shutdown.sh b/modules.d/90mdraid/md-shutdown.sh index 1e6c9f6c8..17eafa525 100755 --- a/modules.d/90mdraid/md-shutdown.sh +++ b/modules.d/90mdraid/md-shutdown.sh @@ -18,4 +18,8 @@ _do_md_shutdown() { return $ret } -_do_md_shutdown $1 +if command -v mdadm >/dev/null; then + _do_md_shutdown $1 +else + : +fi