mdraid/md-shutdown.sh: check for presence of mdadm

master
Harald Hoyer 2012-06-08 12:42:12 +02:00
parent df96787019
commit b4692ce388
1 changed files with 5 additions and 1 deletions

View File

@ -18,4 +18,8 @@ _do_md_shutdown() {
return $ret
}

_do_md_shutdown $1
if command -v mdadm >/dev/null; then
_do_md_shutdown $1
else
:
fi