fcoe/module-setup.sh: check() for needed tools

This commit is contained in:
Harald Hoyer 2012-06-27 09:34:30 +02:00
parent 53fe81e752
commit 2cf987f5c3

View File

@ -8,6 +8,10 @@ check() {
# knowing we are booting from FCoE
[[ $hostonly ]] || [[ $mount_needs ]] && return 1
for i in dcbtool fipvlan lldpad ip readlink; do
type -P $i >/dev/null || return 1
done
return 0
}