Check if a reboot is required