Linux Lite 7.6 Final Released - Click here for more


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optional Widget for Linux Lite 3.2
#33
(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 Smile
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]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply


Messages In This Thread
Optional Widget for Linux Lite 3.2 - by Valtam - 09-14-2016, 08:15 AM
Re: Optional Widget for Linux Lite 3.2 - by Valtam - 09-20-2016, 02:04 AM

Forum Jump:


Users browsing this thread: 7 Guest(s)