X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=scripts%2Fdepmod.sh;fp=scripts%2Fdepmod.sh;h=e22da27fe13eb35fccb3a34cfc90b558e3adc31f;hb=79b96c332241c06b4c63cfa0e23a539558b79b90;hp=fca689ba4f2112755b1514debfeecc904eced5db;hpb=eb931e12194b69b59e6badb06cf1b53e6106ccee;p=linux-2.6-block.git diff --git a/scripts/depmod.sh b/scripts/depmod.sh index fca689ba4f21..e22da27fe13e 100755 --- a/scripts/depmod.sh +++ b/scripts/depmod.sh @@ -1,14 +1,16 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 # -# A depmod wrapper used by the toplevel Makefile +# A depmod wrapper -if test $# -ne 2; then - echo "Usage: $0 /sbin/depmod " >&2 +if test $# -ne 1; then + echo "Usage: $0 " >&2 exit 1 fi -DEPMOD=$1 -KERNELRELEASE=$2 + +KERNELRELEASE=$1 + +: ${DEPMOD:=depmod} if ! test -r System.map ; then echo "Warning: modules_install: missing 'System.map' file. Skipping depmod." >&2