Merge pull request #111 from spartacus06/change-subcommands

change 'apply/remove' to 'load/unload'
This commit is contained in:
Seth Jennings 2014-04-10 16:11:54 -05:00
commit fcbf46978f
2 changed files with 12 additions and 12 deletions

View File

@ -20,7 +20,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA, # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA,
# 02110-1301, USA. # 02110-1301, USA.
# This is the kpatch user script that manages installing, applying, and # This is the kpatch user script that manages installing, loading, and
# displaying information about kernel patch modules installed on the system. # displaying information about kernel patch modules installed on the system.
KERNELRELEASE="$(uname -r)" KERNELRELEASE="$(uname -r)"
@ -34,9 +34,9 @@ usage () {
printf ' %-20s %s\n' "install <file>" "install hotpatch module to the kpatch DB" >&2 printf ' %-20s %s\n' "install <file>" "install hotpatch module to the kpatch DB" >&2
printf ' %-20s %s\n' "uninstall <hotpatch>" "uninstall hotpatch module from the kpatch DB" >&2 printf ' %-20s %s\n' "uninstall <hotpatch>" "uninstall hotpatch module from the kpatch DB" >&2
echo >&2 echo >&2
printf ' %-20s %s\n' "apply --all" "apply all installed hotpatch modules to the running kernel" >&2 printf ' %-20s %s\n' "load --all" "load all installed hotpatch modules to the running kernel" >&2
printf ' %-20s %s\n' "apply <hotpatch>" "apply installed hotpatch module to the running kernel" >&2 printf ' %-20s %s\n' "load <hotpatch>" "load installed hotpatch module to the running kernel" >&2
printf ' %-20s %s\n' "remove <hotpatch>" "remove hotpatch module from the running kernel" >&2 printf ' %-20s %s\n' "unload <hotpatch>" "unload hotpatch module from the running kernel" >&2
echo >&2 echo >&2
echo >&2 echo >&2
printf ' %-20s %s\n' "info <hotpatch>" "show information about an installed hotpatch module" >&2 printf ' %-20s %s\n' "info <hotpatch>" "show information about an installed hotpatch module" >&2
@ -106,7 +106,7 @@ echo_patch_name() {
unset MODULE unset MODULE
[[ "$#" -gt 2 ]] || [[ "$#" -lt 1 ]] && usage [[ "$#" -gt 2 ]] || [[ "$#" -lt 1 ]] && usage
case "$1" in case "$1" in
"apply") "load")
[[ "$#" -ne 2 ]] && usage [[ "$#" -ne 2 ]] && usage
case "$2" in case "$2" in
"--all") "--all")

View File

@ -6,7 +6,7 @@ kpatch \- hot patch module management
.SH SYNOPSIS .SH SYNOPSIS
kpatch <command> [<args>] kpatch <command> [<args>]
.SH DESCRIPTION .SH DESCRIPTION
kpatch is a user script that manages installing, applying, and kpatch is a user script that manages installing, loading, and
displaying information about kernel patch modules installed on displaying information about kernel patch modules installed on
the system. the system.
.SH OPTIONS .SH OPTIONS
@ -17,14 +17,14 @@ install <file>
uninstall <hotpatch> uninstall <hotpatch>
uninstall hotpatch module from the kpatch DB uninstall hotpatch module from the kpatch DB
apply --all load --all
apply all enabled hotpatch modules to the running kernel load all enabled hotpatch modules to the running kernel
apply <hotpatch> load <hotpatch>
apply installed hotpatch module to the running kernel load installed hotpatch module to the running kernel
remove <hotpatch> unload <hotpatch>
remove hotpatch module from the running kernel unload hotpatch module from the running kernel
info <hotpatch> info <hotpatch>
show information about an installed hotpatch module show information about an installed hotpatch module