he he this is the power of opensource...<br>why you said that is heavy? (i just want to learn, i&#39;m quite newbie in scripting and expecially using awk...)<br>d<br><br><div class="gmail_quote">On Sun, Jul 26, 2009 at 8:29 PM, Rui Miguel Silva Seabra <span dir="ltr">&lt;<a href="mailto:rms@1407.org">rms@1407.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Sun, Jul 26, 2009 at 07:18:07PM +0100, Rui Miguel Silva Seabra wrote:<br>


&gt; On Sun, Jul 26, 2009 at 07:49:19PM +0200, Davide Scaini wrote:<br>
&gt; &gt;  I want to share my little bash script to update shr without distroying my<br>
&gt; &gt; existing kernel (a true 2.6.28).<br>
&gt; &gt; It&#39;s really stupid, but maybe someone could find it interesting.<br>
&gt; &gt;<br>
&gt; &gt; opkg list_upgradable &gt; upgradable<br>
&gt; &gt;<br>
&gt; &gt; cat upgradable | awk &#39;{print $1}&#39; | grep -v kernel | grep -v Multiple |<br>
&gt; &gt; while read line<br>
&gt; &gt;<br>
&gt; &gt; do echo &quot;installing pack $line&quot;<br>
&gt; &gt; opkg install $line<br>
&gt; &gt; done<br>
&gt; &gt;<br>
&gt; &gt; I have a script called upgrade.sh and I run that one. If you don&#39;t want to<br>
&gt; &gt; update for example tangogps (or wathever) just add<br>
&gt; &gt; grep -v tangogps |<br>
&gt; &gt; just before &quot;while read line&quot;...<br>
&gt;<br>
&gt; Nice. But a little heavy on the little Neos :) May I suggest a possible<br>
&gt; alternative?<br>
<br>
</div>oops a mistake, this one is corrected, though:<br>
<br>
opkg list_upgradable | awk &#39;!/(kernel|Multiple)/ {print $1}&#39; | \<br>
<div><div></div><div class="h5">        while read line; do<br>
                echo &quot;installing pack $line&quot;<br>
                opkg install $line<br>
        done<br>
<br>
Rui<br>
<br>
_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
<a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
</div></div></blockquote></div><br>