}
+# 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
e "$out"
if [[ $HOSTNAME != "$MAIL_HOST" ]]; then