#!/bin/sh
#
# /etc/cron.daily/upgrade-system
#
# COPYRIGHT © 2004-2020 Martin-Éric Racine <martin-eric.racine@iki.fi>
#
# LICENSE
# GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
#
test -x /usr/sbin/upgrade-system || exit 0
if [ -d /run/systemd/system ]; then exit 0; fi
LANGUAGE=C
LC_ALL=C
export LANGUAGE LC_ALL
apt-get --quiet --quiet update
apt-get --quiet --quiet autoclean
apt-get --simulate --verbose-versions upgrade | grep = | awk '{print $1,$2,"upgradeable to",$4}'
#EOF
