Michael Tokarev: fix `/etc/init.d/mdadm-raid status' inverse logic (Closes: #686100)

Michael Tokarev mjt at alioth.debian.org
Sun Oct 28 20:40:20 UTC 2012


Module: mdadm
Branch: master
Commit: 28dd4ba9eaf08c71d53ef126d30188634e03b753
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=28dd4ba9eaf08c71d53ef126d30188634e03b753

Author: Michael Tokarev <mjt at tls.msk.ru>
Date:   Sat Oct 20 19:21:15 2012 +0400

fix `/etc/init.d/mdadm-raid status' inverse logic (Closes: #686100)

---

 debian/changelog  |    6 ++++++
 debian/mdadm-raid |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8de7b4f..9a8339d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+mdadm (3.2.5-4) UNRELEASED; urgency=low
+
+  * fix `/etc/init.d/mdadm-raid status' inverse logic (Closes: #686100)
+
+ -- Michael Tokarev <mjt at tls.msk.ru>  Sat, 20 Oct 2012 19:20:12 +0400
+
 mdadm (3.2.5-3) unstable; urgency=low
 
   * revert "Drop unused debconf templates" change -- the templates
diff --git a/debian/mdadm-raid b/debian/mdadm-raid
index 7c105e7..0c0cad5 100644
--- a/debian/mdadm-raid
+++ b/debian/mdadm-raid
@@ -249,7 +249,7 @@ case "${1:-}" in
     ;;
 
   status)
-    if [ -f /proc/mdstat ]; then
+    if [ ! -f /proc/mdstat ]; then
       log_problem "no MD subsystem loaded"
       exit 1
     else




More information about the pkg-mdadm-commits mailing list