~ubuntu-core-dev/update-notifier/ubuntu

1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# upgrade-notifier cron daily, will do a apt-get update

set -e

if [ -x /usr/bin/upgrade-notifier ]; then
    if /usr/bin/apt-get update 2>&1 >/dev/null; then
	dbus-send --system / app.apt.dbus.updated boolean:true
	#touch /var/lib/apt/lists/update-stamp
    fi
fi