mirror of
https://github.com/bashclub/checkmk-monitoring-plugins.git
synced 2024-12-25 01:20:13 +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)
|
uname=$(uname -r)
|
||||||
major_version=${uname:0:3}
|
major_version=${uname:0:3}
|
||||||
if [[ "$uname" == *"-pve" ]]; then
|
if [[ "$uname" == *"-pve"* ]]; then
|
||||||
if [[ "$(lsb_release -cs 2> /dev/null)" == "bookworm" ]]; 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"
|
filter="proxmox-kernel-${major_version}.*-signed"
|
||||||
uname=${uname}-signed
|
uname=${uname}-signed
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user