diff --git a/kpatch/kpatch b/kpatch/kpatch index 40a8476..9cba051 100755 --- a/kpatch/kpatch +++ b/kpatch/kpatch @@ -36,8 +36,8 @@ usage () { echo "usage: kpatch []" >&2 echo >&2 echo "Valid commands:" >&2 - usage_cmd "install [-k|--kver=] " "install patch module to the initrd to be loaded at boot" - usage_cmd "uninstall [-k|--kver=] " "uninstall patch module from the initrd" + usage_cmd "install [-k|--kernel-version=] " "install patch module to the initrd to be loaded at boot" + usage_cmd "uninstall [-k|--kernel-version=] " "uninstall patch module from the initrd" echo >&2 usage_cmd "load --all" "load all installed patch modules into the running kernel" usage_cmd "load " "load patch module into the running kernel" @@ -172,11 +172,11 @@ case "$1" in "install") KVER=$(uname -r) shift - options=$(getopt -o k: -l "kver:" -- "$@") || die "getopt failed" + options=$(getopt -o k: -l "kernel-version:" -- "$@") || die "getopt failed" eval set -- "$options" while [[ $# -gt 0 ]]; do case "$1" in - -k|--kver) + -k|--kernel-version) KVER=$2 shift ;; @@ -209,11 +209,11 @@ case "$1" in "uninstall") KVER=$(uname -r) shift - options=$(getopt -o k: -l "kver:" -- "$@") || die "getopt failed" + options=$(getopt -o k: -l "kernel-version:" -- "$@") || die "getopt failed" eval set -- "$options" while [[ $# -gt 0 ]]; do case "$1" in - -k|--kver) + -k|--kernel-version) KVER=$2 shift ;; diff --git a/man/kpatch.1 b/man/kpatch.1 index 52e858b..afee613 100644 --- a/man/kpatch.1 +++ b/man/kpatch.1 @@ -11,10 +11,10 @@ displaying information about kernel patch modules installed on the system. .SH COMMANDS -install [-k|--kver=] +install [-k|--kernel-version=] install patch module to the initrd to be loaded at boot -uninstall [-k|--kver=] +uninstall [-k|--kernel-version=] uninstall patch module from the initrd load --all