Simplify the kernel change check and make it work with any kernel

Closes #3785
This commit is contained in:
David Heinemeier Hansson
2026-02-20 21:22:59 +01:00
parent 9b4140abc9
commit 0cc91ce71c
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash
if [ "$(uname -r | sed 's/-arch/\.arch/')" != "$(pacman -Q linux | awk '{print $2}')" ]; then
if [ ! -d "/usr/lib/modules/$(uname -r)" ]; then
gum confirm "Linux kernel has been updated. Reboot?" && omarchy-cmd-reboot
elif [ -f "$HOME/.local/state/omarchy/reboot-required" ]; then
gum confirm "Updates require reboot. Ready?" && omarchy-cmd-reboot