dm: check for presence of dmsetup

master
Harald Hoyer 2012-06-08 12:41:49 +02:00
parent d2a9c4a8e7
commit df96787019
2 changed files with 7 additions and 1 deletions

View File

@ -13,4 +13,9 @@ _do_dm_shutdown() {
fi
return $ret
}
_do_dm_shutdown $1

if command -v dmsetup >/dev/null; then
_do_dm_shutdown $1
else
:
fi

View File

@ -3,6 +3,7 @@
# ex: ts=8 sw=4 sts=4 et filetype=sh

check() {
type -P dmsetup >/dev/null || return 1
return 255
}