Simplify the kernel change check and make it work with any kernel
Closes #3785
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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
|
gum confirm "Linux kernel has been updated. Reboot?" && omarchy-cmd-reboot
|
||||||
elif [ -f "$HOME/.local/state/omarchy/reboot-required" ]; then
|
elif [ -f "$HOME/.local/state/omarchy/reboot-required" ]; then
|
||||||
gum confirm "Updates require reboot. Ready?" && omarchy-cmd-reboot
|
gum confirm "Updates require reboot. Ready?" && omarchy-cmd-reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user