[shr-u] update shr quite safely

Davide Scaini dscaini at gmail.com
Sun Jul 26 21:40:26 CEST 2009


he he this is the power of opensource...
why you said that is heavy? (i just want to learn, i'm quite newbie in
scripting and expecially using awk...)
d

On Sun, Jul 26, 2009 at 8:29 PM, Rui Miguel Silva Seabra <rms at 1407.org>wrote:

> On Sun, Jul 26, 2009 at 07:18:07PM +0100, Rui Miguel Silva Seabra wrote:
> > On Sun, Jul 26, 2009 at 07:49:19PM +0200, Davide Scaini wrote:
> > >  I want to share my little bash script to update shr without distroying
> my
> > > existing kernel (a true 2.6.28).
> > > It's really stupid, but maybe someone could find it interesting.
> > >
> > > opkg list_upgradable > upgradable
> > >
> > > cat upgradable | awk '{print $1}' | grep -v kernel | grep -v Multiple |
> > > while read line
> > >
> > > do echo "installing pack $line"
> > > opkg install $line
> > > done
> > >
> > > I have a script called upgrade.sh and I run that one. If you don't want
> to
> > > update for example tangogps (or wathever) just add
> > > grep -v tangogps |
> > > just before "while read line"...
> >
> > Nice. But a little heavy on the little Neos :) May I suggest a possible
> > alternative?
>
> oops a mistake, this one is corrected, though:
>
> opkg list_upgradable | awk '!/(kernel|Multiple)/ {print $1}' | \
>         while read line; do
>                echo "installing pack $line"
>                opkg install $line
>        done
>
> Rui
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/community/attachments/20090726/654ed7d7/attachment.htm 


More information about the community mailing list