diff options
author | Erich Eckner <git@eckner.net> | 2021-11-08 09:58:17 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-11-08 09:58:17 +0100 |
commit | 98040ada66c9af561527036e9ecd644adbe7e31c (patch) | |
tree | 52fcfad78c84ad6ba69e0a978ee1ba2451cbf4c1 /mdadm.hook | |
parent | 84f996d0ff201b976b5f8d226f301ad4b8167cbd (diff) | |
download | sendmailadvanced-98040ada66c9af561527036e9ecd644adbe7e31c.tar.xz |
mdadm.hook new
Diffstat (limited to 'mdadm.hook')
-rw-r--r-- | mdadm.hook | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mdadm.hook b/mdadm.hook new file mode 100644 index 0000000..a687296 --- /dev/null +++ b/mdadm.hook @@ -0,0 +1,18 @@ +#!/bin/sh + +case "$1" in + 'head') + : + ;; + 'foot') + echo '-------------------------- /proc/mdstat ----------------------------' + echo + cat /proc/mdstat + echo + echo '------------------------ /proc/mdstat End --------------------------' + ;; + *) + >&2 printf 'usage: %s head|foot\n' "${0##*/}" + exit 1 + ;; +esac |