Last active
January 2, 2022 18:52
-
-
Save soyfrien/2593f501387a67d3c9f7fd1fe805e11c to your computer and use it in GitHub Desktop.
rcheck.sh: Answers question: restart required?
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
#!/bin/bash | |
if [ -f /var/run/reboot-required ]; then | |
echo '*** System restart required ***' | |
else echo 'Reboot not necessary.' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment