dots/bin/bin/is-reboot-needed

5 lines
145 B
Bash
Executable File

#!/bin/sh
grep -qs '^ID=arch$' /etc/os-release \
&& { test -e /lib/modules/`uname -r` \
|| echo Kernel updated, reboot computer.; }