Fix the offer to restart when the linux kernel changes
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [[ ! -d /usr/lib/modules/$(uname -r) ]]; then
|
if find /usr/lib/modules -maxdepth 2 -name vmlinuz -newermt "$(uptime -s)" 2>/dev/null | grep -q .; then
|
||||||
gum confirm "Linux kernel has been updated. Reboot?" && omarchy-system-reboot
|
gum confirm "Linux kernel has been updated. Reboot?" && omarchy-system-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-system-reboot
|
gum confirm "Updates require reboot. Ready?" && omarchy-system-reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user