]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - scripts/depmod.sh
Merge tag 'for-linus-4.19d-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel...
[linux.git] / scripts / depmod.sh
index 1a6f85e0e6e15731367fe4696129d0d5d91f1a0a..e083bcae343f3e71290e433b7fd50861fd819ca4 100755 (executable)
@@ -10,7 +10,14 @@ fi
 DEPMOD=$1
 KERNELRELEASE=$2
 
-if ! test -r System.map -a -x "$DEPMOD"; then
+if ! test -r System.map ; then
+       echo "Warning: modules_install: missing 'System.map' file. Skipping depmod." >&2
+       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