aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2023-01-10 12:47:36 +0000
committerBarry Jackson <barjac@mageia.org>2023-01-10 12:47:36 +0000
commita6cc829a129a6a209f22c8118f2cab3db26081c7 (patch)
treec4ddbb93a4c5bf374590d6aa4ec8cbabfde07dff
parenta8ef949aa802fcc067ac8c2f5a6209bfc6a1d154 (diff)
downloadremove-old-kernels-a6cc829a129a6a209f22c8118f2cab3db26081c7.tar
remove-old-kernels-a6cc829a129a6a209f22c8118f2cab3db26081c7.tar.gz
remove-old-kernels-a6cc829a129a6a209f22c8118f2cab3db26081c7.tar.bz2
remove-old-kernels-a6cc829a129a6a209f22c8118f2cab3db26081c7.tar.xz
remove-old-kernels-a6cc829a129a6a209f22c8118f2cab3db26081c7.zip
update man page & help
-rwxr-xr-xremove-old-kernels2
-rw-r--r--remove-old-kernels.115
2 files changed, 10 insertions, 7 deletions
diff --git a/remove-old-kernels b/remove-old-kernels
index ed8577f..bfc16b6 100755
--- a/remove-old-kernels
+++ b/remove-old-kernels
@@ -54,7 +54,7 @@ gettext $prog "$1"
# Display -help
usage() {
-echo "$(i18n "Usage: <remove-old kernels|rok> [-a] [-A <1/0>] [-c] [-t] [-f 0-9] [-F 0-9] [-n number] [-N number] [-p] [-q] [-Q 0|1][-l] [-m] [-v] [-h|-?]")"
+echo "$(i18n "Usage: <remove-old kernels|rok> [-a] [-A 0|1] [-c] [-t] [-f 0-9] [-F 0-9] [-n number] [-N number] [-p] [-q] [-Q 0|1][-l] [-m] [-v] [-h|-?]")"
echo "$(i18n " -a = automatic, no questions. Interactive if not specified. (must be root)")"
echo "$(i18n " -A value = 1 or 0 to turn ON or OFF automatic weekly removal of kernels. (e.g. -A1)")"
echo "$(i18n " -c = as automatic but also checks for CRON=1 in the cfg file or exits. (must be root)")"
diff --git a/remove-old-kernels.1 b/remove-old-kernels.1
index b43d50f..080b556 100644
--- a/remove-old-kernels.1
+++ b/remove-old-kernels.1
@@ -1,4 +1,4 @@
-.TH remove-old-kernels "6 Jan 2023"
+.TH remove-old-kernels "10 Jan 2023"
.SH NAME
remove-old-kernels \- Utility to remove obsolete kernels in Mageia Systems using urpme.
.SH SYNOPSIS
@@ -29,7 +29,10 @@ This is a good way to make a quick check without any risk of error.
\fBremove-old-kernels\fP is also available from the Mageia main menu system in graphical desktops for ease of use by users unfamiliar with the command line. Usually found under Tools -> System Tools. It will ask for the root password.
\fBIn automatic mode a log is kept at /var/log/remove-old-kernels.log. The log is limited to 1000 lines (up to a year) and will then start to remove the oldest entries whilst adding new ones. See the -l option to view the log.
-
+.br
+NOTE: If the 'remove old kernels' package is uninstalled, then the log will also be removed,
+so if you need it, you must make a backup of /var/log/remove-old-kernels.log before uninstalling.
+
.SH DISPLAY
.TP
@@ -40,13 +43,13 @@ The system release information.
.br
The number of kernels found in the /boot directory
.br
-Whether the automatic mode is on or off. OFF is highlighted in red as a warning.
+Whether the automatic mode is on (1) or off (0). '0' is highlighted in red as a warning when off.
.br
The number of kernels to be kept per flavour.
.br
-Whether in advanced mode. Not shown when OFF. e.g. Q:1
+Whether in advanced mode. e.g.| Q | Not shown when OFF.
.br
-The configuration file in use. Not shown for the main configuration file. e.g. F:1
+The alternate configuration file in use. Not shown for the main configuration file. e.g. F:1
.TP
\fB\The list columns.
@@ -154,7 +157,7 @@ A kernel potentially needed by an installed xtables-addons kernel latest.
.TP
\fI\-Q N\fP Advanced mode, persistent. OFF by default.
-When ON, "Q:ON" is displayed near the right end of the header bar.
+When ON, "Q" is displayed near the right end of the header bar.
N = 1 for enable, 0 to disable. Default disabled.