diff options
Diffstat (limited to 'scripts/depmod.sh')
-rwxr-xr-x | scripts/depmod.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/depmod.sh b/scripts/depmod.sh index 1a6f85e0e6e1..999d585eaa73 100755 --- a/scripts/depmod.sh +++ b/scripts/depmod.sh | |||
@@ -10,10 +10,16 @@ fi | |||
10 | DEPMOD=$1 | 10 | DEPMOD=$1 |
11 | KERNELRELEASE=$2 | 11 | KERNELRELEASE=$2 |
12 | 12 | ||
13 | if ! test -r System.map -a -x "$DEPMOD"; then | 13 | if ! test -r System.map ; then |
14 | exit 0 | 14 | exit 0 |
15 | fi | 15 | fi |
16 | 16 | ||
17 | if [ -z $(command -v $DEPMOD) ]; then | ||
18 | echo "'make modules_install' requires $DEPMOD. Please install it." >&2 | ||
19 | echo "This is probably in the kmod package." >&2 | ||
20 | exit 1 | ||
21 | fi | ||
22 | |||
17 | # older versions of depmod require the version string to start with three | 23 | # older versions of depmod require the version string to start with three |
18 | # numbers, so we cheat with a symlink here | 24 | # numbers, so we cheat with a symlink here |
19 | depmod_hack_needed=true | 25 | depmod_hack_needed=true |