aboutsummaryrefslogtreecommitdiffstats
path: root/remove-old-kernels_N.cfg.template
diff options
context:
space:
mode:
authorBarry Jackson <barjac@users.noreply.github.com>2023-01-05 15:22:25 +0000
committerGitHub <noreply@github.com>2023-01-05 15:22:25 +0000
commit8d6bb61cf2c23bba979716d9cb0ee26789f594bd (patch)
treee228c4131be5bc255a7b2e6a679fdd7c505b2241 /remove-old-kernels_N.cfg.template
parent7651d383f33ee245a082e657a9055f318f5d6886 (diff)
downloadremove-old-kernels-8d6bb61cf2c23bba979716d9cb0ee26789f594bd.tar
remove-old-kernels-8d6bb61cf2c23bba979716d9cb0ee26789f594bd.tar.gz
remove-old-kernels-8d6bb61cf2c23bba979716d9cb0ee26789f594bd.tar.bz2
remove-old-kernels-8d6bb61cf2c23bba979716d9cb0ee26789f594bd.tar.xz
remove-old-kernels-8d6bb61cf2c23bba979716d9cb0ee26789f594bd.zip
Add files via upload
initial import
Diffstat (limited to 'remove-old-kernels_N.cfg.template')
-rw-r--r--remove-old-kernels_N.cfg.template48
1 files changed, 48 insertions, 0 deletions
diff --git a/remove-old-kernels_N.cfg.template b/remove-old-kernels_N.cfg.template
new file mode 100644
index 0000000..8e95d97
--- /dev/null
+++ b/remove-old-kernels_N.cfg.template
@@ -0,0 +1,48 @@
+# remove-old-kernels_N.cfg.template
+
+# NOTE: This is a default template to use for 'alternative' .cfg files
+# All settings in here are the default as used in the main configuration file.
+
+#===========================================
+# This file may be copied as /etc/remove-old-kernels_N.cfg and edited as desired.
+# N must only be a single digit from 1 to 9.
+#===========================================
+
+# If dnf is installed then 'remove-old-kernels' will always
+# keep at least the number of kernels set in /etc/dnf/dnf.conf
+# which defaults to three.
+
+# Number of kernels of each flavour to keep - Must be 2 or greater.
+NBK=3
+
+# Handy info: https://misc.flogisoft.com/bash/tip_colors_and_formatting#colors
+# Colours for display Defaults Used for
+Normal="\e[0m"
+KeepCol="\e[92m" # Light Green Keep text
+RemvCol="\e[91m" # Light Red Remove text
+InfoCol="\e[33m" # Orange Information text
+HdBgCol="\e[102;30m" # Light Green Background Heading background
+WarnBgCol="\e[101m" # Light Red Background Warnings in heading
+ClearLine="\r\e[2K" # Clear the line
+
+# Kernel types to test for removal - keep the same order i.e. kernels before -devel etc. or leave alone.
+LISTK=\
+"kernel-desktop586
+kernel-desktop
+kernel-desktop-devel
+kernel-server
+kernel-server-devel
+kernel-source
+kernel-tmb-desktop
+kernel-tmb-desktop-devel
+kernel-tmb-source
+kernel-linus
+kernel-linus-devel
+kernel-linus-source
+"
+
+# Allow cron to run 'remove-old-kernels' weekly. Replace 'y' with 'n' (lower case) to disable it.
+CRON=y
+
+# Turn on the advanced mode. [0|1] (1 is ON)
+QA=0