he he this is the power of opensource...<br>why you said that is heavy? (i just want to learn, i'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"><<a href="mailto:rms@1407.org">rms@1407.org</a>></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>
> On Sun, Jul 26, 2009 at 07:49:19PM +0200, Davide Scaini wrote:<br>
> > I want to share my little bash script to update shr without distroying my<br>
> > existing kernel (a true 2.6.28).<br>
> > It's really stupid, but maybe someone could find it interesting.<br>
> ><br>
> > opkg list_upgradable > upgradable<br>
> ><br>
> > cat upgradable | awk '{print $1}' | grep -v kernel | grep -v Multiple |<br>
> > while read line<br>
> ><br>
> > do echo "installing pack $line"<br>
> > opkg install $line<br>
> > done<br>
> ><br>
> > I have a script called upgrade.sh and I run that one. If you don't want to<br>
> > update for example tangogps (or wathever) just add<br>
> > grep -v tangogps |<br>
> > just before "while read line"...<br>
><br>
> Nice. But a little heavy on the little Neos :) May I suggest a possible<br>
> alternative?<br>
<br>
</div>oops a mistake, this one is corrected, though:<br>
<br>
opkg list_upgradable | awk '!/(kernel|Multiple)/ {print $1}' | \<br>
<div><div></div><div class="h5"> while read line; do<br>
echo "installing pack $line"<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>