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?

opkg list_upgradable | awk '!/(kernel|Multiple)/ {print $1}' upgradable | \
        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

Reply via email to