3 # returns an error value if reboot IS required due to some recent
4 # updates. otherwise returns a normal zero exit value indicating
5 # that things are peachy.
7 if [ -f /var/run/reboot-required ]; then
13 #hmmm: add other OS versions, e.g.
14 # redhat/centos: $ needs-restarting -r ; echo $?
15 # shows if needs to be rebooted and returns an error if does need reboot