How do I know if I need to reboot my Arch Linux after running pacman -Syu
?
I’ve found this to work well:
$ ls -d /lib/modules/$(uname -r) || echo Reboot needed
I wonder if there is an even easier way, like Debian that gives you a file to check:
/var/run/reboot-required
?
#archlinux #linux