From 34f24cb38ac588e7e67b743f4edf1e971480ac5e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 2 Aug 2025 14:26:08 +0200 Subject: [PATCH] Offer to reboot after Linux kernel has been updated Closes #377 --- bin/omarchy-update | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-update b/bin/omarchy-update index 19b44b2..c5b68b3 100755 --- a/bin/omarchy-update +++ b/bin/omarchy-update @@ -31,6 +31,10 @@ done echo -e "\e[32m\nUpdate system packages\e[0m" yay -Syu --noconfirm +# Offer to reboot if the kernel has been changed +if [ "$(uname -r | sed 's/-arch/\.arch/')" != "$(pacman -Q linux | awk '{print $2}')" ]; then + gum confirm "Linux kernel has been updated. Reboot?" && sudo reboot now +fi + # Back to where we came from cd - >/dev/null -