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 <[email protected]>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 > [email protected] > http://lists.openmoko.org/mailman/listinfo/community >
_______________________________________________ Openmoko community mailing list [email protected] http://lists.openmoko.org/mailman/listinfo/community

