version 1.40.130 release
[feisty_meow.git] / scripts / system / is_reboot_needed.sh
1 #!/bin/bash
2
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.
6
7 if [ -f /var/run/reboot-required ]; then
8   echo 'reboot required'
9   exit 1
10 fi
11 exit 0
12
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
16 #