fixed reboot indicator

This commit is contained in:
2024-11-09 18:38:04 +01:00
parent fce6d5ab5b
commit e86bdf1a32

View File

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