# TODO: executed from cron, this doesnt sent an email when we reboot,
# because rebooting from the script stops the ability to send email.
# We should figure some workaround.
if ! out=$(/sbin/needrestart -p 2>&1); then
# TODO: executed from cron, this doesnt sent an email when we reboot,
# because rebooting from the script stops the ability to send email.
# We should figure some workaround.
if ! out=$(/sbin/needrestart -p 2>&1); then