Created
January 21, 2022 13:23
-
-
Save adlerweb/126ca7546014eef6754823a0234333e4 to your computer and use it in GitHub Desktop.
Archlinux: Check if running kernel matches installed kernel (aka: do I need to reboot). Might work for other distros too.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $(file /boot/vmlinuz* | cut -d ' ' -f 9) != $(uname -r) ] ; then echo 'reboot'; else echo 'ok'; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment