summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/mdadm-raid9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/mdadm-raid b/debian/mdadm-raid
index a466078c..7c105e7a 100644
--- a/debian/mdadm-raid
+++ b/debian/mdadm-raid
@@ -248,6 +248,15 @@ case "${1:-}" in
log_notice "never anything to do"
;;
+ status)
+ if [ -f /proc/mdstat ]; then
+ log_problem "no MD subsystem loaded"
+ exit 1
+ else
+ cat /proc/mdstat
+ fi
+ ;;
+
*)
echo "Usage: ${0:-} {start|stop|restart}" >&2
exit 1;;