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

Download your free copy of Linux Lite today.
Jerry Bezencon
Linux Lite Creator
"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."
![[Image: X5qGkCg.png]](https://imgur.com/X5qGkCg.png)
![[Image: lrUHro3.jpg]](https://i.imgur.com/lrUHro3.jpg)
Jerry Bezencon
Linux Lite Creator
"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."
![[Image: X5qGkCg.png]](https://imgur.com/X5qGkCg.png)
![[Image: 0op1GNe.png]](https://i.imgur.com/0op1GNe.png)
![[Image: LgJ2mtP.png]](https://i.imgur.com/LgJ2mtP.png)
![[Image: vLZcFUE.png]](https://imgur.com/vLZcFUE.png)
![[Image: lrUHro3.jpg]](https://i.imgur.com/lrUHro3.jpg)