Ireng Posted May 19, 2016 Posted May 19, 2016 Hi to All, I recently upgraded my "test server" to the current version, by flashing a new image to my sd-card. However i forgot to recover some essential files, before flashing! I liked very much the login info about the the number of available updates, since I used the testing repo at that time. Could someone provide the code snipplet for that piece of info ann thell me, in which file to place it?? Well, many many thanks for your help and advice! regards, ireng
Ireng Posted May 23, 2016 Author Posted May 23, 2016 Too bad, that anyone could give me advice or a hint! regards, ireng
Solution tkaiser Posted May 23, 2016 Solution Posted May 23, 2016 You might be talking about /etc/update-motd.d/40-updates? Please keep in mind that the information there might be outdated by 2 days since the count of available updates will be somehow cached since it migth delay any login attempt otherwise. https://github.com/igorpecovnik/lib/blob/master/scripts/update-motd.d/40-updates#L139 So in case you really believe this is valuable 'information' then think about adjusting the script so that it updates /var/cache/apt/archives/updates.number anyway and call it from cron hourly or in case you love ultra slow logins modify the twodays_ago formula to your needs. 1
Ireng Posted May 23, 2016 Author Posted May 23, 2016 @tkaiser: Thanks for your reply and avice! That is what I was looking for! regards, Ireng
Recommended Posts