Blame 0014-mdraid-md-shutdown.sh-check-for-presence-of-mdadm.patch
|
Harald Hoyer |
18c19d |
From b4692ce3889d5e165a9aa51db7732baf2996fd7a Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
18c19d |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
18c19d |
Date: Fri, 8 Jun 2012 12:42:12 +0200
|
|
Harald Hoyer |
18c19d |
Subject: [PATCH] mdraid/md-shutdown.sh: check for presence of mdadm
|
|
Harald Hoyer |
18c19d |
|
|
Harald Hoyer |
18c19d |
---
|
|
Harald Hoyer |
18c19d |
modules.d/90mdraid/md-shutdown.sh | 6 +++++-
|
|
Harald Hoyer |
18c19d |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
18c19d |
|
|
Harald Hoyer |
18c19d |
diff --git a/modules.d/90mdraid/md-shutdown.sh b/modules.d/90mdraid/md-shutdown.sh
|
|
Harald Hoyer |
18c19d |
index 1e6c9f6..17eafa5 100755
|
|
Harald Hoyer |
18c19d |
--- a/modules.d/90mdraid/md-shutdown.sh
|
|
Harald Hoyer |
18c19d |
+++ b/modules.d/90mdraid/md-shutdown.sh
|
|
Harald Hoyer |
18c19d |
@@ -18,4 +18,8 @@ _do_md_shutdown() {
|
|
Harald Hoyer |
18c19d |
return $ret
|
|
Harald Hoyer |
18c19d |
}
|
|
Harald Hoyer |
18c19d |
|
|
Harald Hoyer |
18c19d |
-_do_md_shutdown $1
|
|
Harald Hoyer |
18c19d |
+if command -v mdadm >/dev/null; then
|
|
Harald Hoyer |
18c19d |
+ _do_md_shutdown $1
|
|
Harald Hoyer |
18c19d |
+else
|
|
Harald Hoyer |
18c19d |
+ :
|
|
Harald Hoyer |
18c19d |
+fi
|