]> git.ipfire.org Git - people/arne_f/network.git/blobdiff - functions.util
network: STP: Make protocol version configureable.
[people/arne_f/network.git] / functions.util
index 1163634b2678b7bb730da2acef5805f133113f3d..8be825ee90db01de29afb9a2eadeba767f3192ea 100644 (file)
@@ -376,3 +376,13 @@ function module_load() {
                modprobe ${module}
        fi
 }
+
+function binary_exists() {
+       local binary=${1}
+
+       if [ -n "$(type -p ${binary})" ]; then
+               return ${EXIT_OK}
+       fi
+
+       return ${EXIT_ERROR}
+}