Skip to content

Instantly share code, notes, and snippets.

@soyfrien
Last active January 2, 2022 18:52
Show Gist options
  • Save soyfrien/2593f501387a67d3c9f7fd1fe805e11c to your computer and use it in GitHub Desktop.
Save soyfrien/2593f501387a67d3c9f7fd1fe805e11c to your computer and use it in GitHub Desktop.
rcheck.sh: Answers question: restart required?
#!/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