mirror of
https://github.com/bashclub/checkmk-monitoring-plugins.git
synced 2024-11-07 10:01:58 +01:00
Update check_running_kernel
Fix kernel detection
This commit is contained in:
parent
2c71bb486f
commit
6eba5baf48
@ -30,9 +30,9 @@
|
||||
|
||||
uname=$(uname -r)
|
||||
major_version=${uname:0:3}
|
||||
if [[ "$uname" == *"-pve" ]]; then
|
||||
if [[ "$uname" == *"-pve"* ]]; then
|
||||
if [[ "$(lsb_release -cs 2> /dev/null)" == "bookworm" ]]; then
|
||||
if [[ "$major-version" == "6.5" ]]; then
|
||||
if [[ "$major_version" == "6.5" ]]; then
|
||||
filter="proxmox-kernel-${major_version}.*-signed"
|
||||
uname=${uname}-signed
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user