redo of the check from reboot scripts.

This is so the script will run locally on the machine and only calls a
policy if a reboot is need for logging.