version indicator and anal

This commit is contained in:
2024-11-01 22:09:49 +01:00
parent 5ab600de5c
commit fce6d5ab5b
2 changed files with 3 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
RUNNING_VERSION="$(uname -r | grep -o '[0-9]*\.[0-9]*\.[0-9]*-[0-9]*')"
INSTALLED_VERSION="$(find /boot -maxdepth 0 -name 'vmlinuz*' | grep -o '[0-9]*\.[0-9]*\.[0-9]*-[0-9]*' | sort -r | head -1)"
INSTALLED_VERSION="$(find /boot -maxdepth 0 -name 'vmlinuz*' | grep -o '[0-9]*\.[0-9]*\.[0-9]*-[0-9]*' | sort -Vr | head -1)"
#echo $RUNNING_VERSION
#echo $INSTALLED_VERSION