Advertisement
Barry1

rebootRequired.sh

Feb 11th, 2014
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. #!/bin/bash
  2. # from http://askubuntu.com/questions/164/how-can-i-tell-from-the-command-line-whether-the-machine-requires-a-reboot
  3. if [ -f /var/run/reboot-required ]; then
  4.   echo 'reboot required'
  5. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement