diff options
Diffstat (limited to 'debian/checkarray')
-rw-r--r-- | debian/checkarray | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/checkarray b/debian/checkarray index f2c60c6e..fdee489c 100644 --- a/debian/checkarray +++ b/debian/checkarray @@ -91,6 +91,11 @@ if [ ! -f /proc/mdstat ]; then exit 2 fi +if [ -z "$(ls /sys/block/md* 2>/dev/null)" ]; then + [ $quiet -lt 2 ] && echo "$PROGNAME: E: no active RAID arrays found." >&2 + exit 5 +fi + if [ -z "$(ls /sys/block/md*/md/sync_action 2>/dev/null)" ]; then [ $quiet -lt 2 ] && echo "$PROGNAME: E: no kernel support for parity checks." >&2 exit 3 |