]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - scripts/depmod.sh
USB: legousbtower: fix slab info leak at probe
[mirror_ubuntu-bionic-kernel.git] / scripts / depmod.sh
index 9831cca31240b8b9890d701308ed53bcd62c2ccf..cf5b2b24b3cf13b256e2d9952ff2f2232a8ffd0c 100755 (executable)
@@ -11,7 +11,13 @@ DEPMOD=$1
 KERNELRELEASE=$2
 SYMBOL_PREFIX=$3
 
-if ! test -r System.map -a -x "$DEPMOD"; then
+if ! test -r System.map ; then
+       exit 0
+fi
+
+if [ -z $(command -v $DEPMOD) ]; then
+       echo "Warning: 'make modules_install' requires $DEPMOD. Please install it." >&2
+       echo "This is probably in the kmod package." >&2
        exit 0
 fi