<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 June 2014 08:01, Karanbir Singh <span dir="ltr">&lt;<a href="mailto:mail-lists@karan.org" target="_blank">mail-lists@karan.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">On 06/12/2014 02:45 PM, Trevor Hemsley wrote:<br>

&gt;<br>
&gt; I checked further and older ubuntu releases used to use update-motd but<br>
&gt; they&#39;ve now modified pam_motd to invoke the scripts in<br>
&gt; /etc/update-motd.d on login instead. I checked my RHEL7rc VM and those<br>
&gt; modifications are not present there.<br>
<br>
</div>this is just a super complex solution to a problem that is far simpler<br>
than it seems.<br>
<br>
if a yum-plugin is able to drop the number somewhere, an echo in .skel<br>
would be all the &#39;UI&#39; we need, and if its there for the default user on<br>
instance bringup, the skel should get copied over ( and then the user<br>
can do whatever they please ) to all new users as well.<br></blockquote><div><br></div><div>So a cron job which does a</div><div><br></div><div><div>yum list updates | awk &#39;BEGIN{x=0}; {if ($NF~&#39;update&#39;) {x=x+1}}; END{print &quot;Your system is behind  &quot; x &quot; updates.&quot;}&#39; &gt; /etc/centos-updates</div>
<div>Your system is behind  37 updates.</div></div><div> </div><div>with it all being in python or something. Then in .bashrc a bit of &#39;if tty &amp;&amp; SEENALREADY then cat /etc/centos-updates; SEENALREADY=1; fi&#39; type logic</div>
</div><div><br></div>-- <br><div dir="ltr">Stephen J Smoogen.<br><br></div>
</div></div>