diff options
Diffstat (limited to 'scripts/patch-kernel')
-rwxr-xr-x | scripts/patch-kernel | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/patch-kernel b/scripts/patch-kernel index edc3d1ec4000..5d4628cfd600 100755 --- a/scripts/patch-kernel +++ b/scripts/patch-kernel @@ -46,6 +46,15 @@ sourcedir=${1-/usr/src/linux} patchdir=${2-.} stopvers=${3-imnotaversion} +if [ "$1" = -h -o "$1" = --help -o ! -r "$sourcedir/Makefile" ]; then +cat << USAGE +usage: patch-kernel [-h] [ sourcedir [ patchdir [ stopversion ] [ -acxx ] ] ] + The source directory defaults to /usr/src/linux, and + the patch directory defaults to the current directory. +USAGE +exit 1 +fi + # See if we have any -ac options for PARM in $* do |