]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fcoe/module-setup.sh: check() for needed tools
authorHarald Hoyer <harald@redhat.com>
Wed, 27 Jun 2012 07:34:30 +0000 (09:34 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 29 Jun 2012 10:41:27 +0000 (12:41 +0200)
modules.d/95fcoe/module-setup.sh

index 19154adc43e7e28da9c6b8138a01d6e5d3fa7c1e..b657a746baf0d85e4b182c260859cd6b0b119b2e 100755 (executable)
@@ -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
 }