From eba4a28abc2c172729f9f743119153ddb16830cb Mon Sep 17 00:00:00 2001
From: Martin <martin.gasser@protonmail.com>
Date: Wed, 29 Mar 2023 18:10:55 +0200
Subject: [PATCH] add almalinux in check_reboot

---
 check_reboot_required | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/check_reboot_required b/check_reboot_required
index 327f0cc..a31f45e 100755
--- a/check_reboot_required
+++ b/check_reboot_required
@@ -13,6 +13,7 @@
 # 2020-03-05  v1.2  <axel.hahn@iml.unibe.ch> switch to ph.* helper functions
 # 2022-10-14  v1.3  <axel.hahn@unibe.ch>     fix debian output if /var/run/reboot-required.pkgs does not exist
 #                                            Shellfixes; add help
+# 2023-03-29  v1.4  <martin.gasser@unibe.ch> add almalinux as distro
 # ======================================================================
 
 
@@ -74,7 +75,7 @@ esac
 
 case $distro in
 
-  "centos")
+  "centos"|"almalinux")
     currentkernel=$(uname -r)
     out=$(rpm -q --last kernel | head -1 | grep -F $currentkernel)
     if [ -z "$out" ]; then
-- 
GitLab