09-20-2016, 02:04 AM
(09-20-2016, 12:50 AM)LL-user link Wrote: Is the "apt-get update" part covered by the system out of the box? I see that you straight away check for available updates via "apt-get upgrade".
That method does work, each time I've reboot one of my VM's here running the widget displays a new amount of updates when they're available.
You can change Line 8 in the updates script to show:
Code:
NUMOFUPDATES=$(LANG=C /usr/lib/update-notifier/apt-check 2>&1 | cut -d ';' -f 1)
if you like. apt-check is run at boot time to check for the number of updates available and show them in the motd, it's an Ubuntu thing
