author | tille <tille> | 2002-06-24 16:50:47 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-24 16:50:47 (UTC) |
commit | 0b3348fb1177e479b73ac264048b440ceeb24710 (patch) (side-by-side diff) | |
tree | 5ee3bd458a4d9a12f0d6af2ba2b4fe95672c7898 | |
parent | 47bc69a49790ad8f055ab2647246e2c821cef85d (diff) | |
download | opie-0b3348fb1177e479b73ac264048b440ceeb24710.zip opie-0b3348fb1177e479b73ac264048b440ceeb24710.tar.gz opie-0b3348fb1177e479b73ac264048b440ceeb24710.tar.bz2 |
Das Dreckscript opie-update
-rwxr-xr-x | scripts/update/opie-update.postinst | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/scripts/update/opie-update.postinst b/scripts/update/opie-update.postinst index de045a4..d42169b 100755 --- a/scripts/update/opie-update.postinst +++ b/scripts/update/opie-update.postinst @@ -1,52 +1,36 @@ -#!/bin/bash -v +#!/bin/bash # # script to remove and reinstall opie # # it's free so do not sell it # (c) patrick s. vogtp <tille@handhelds.org> IPKG_REMOVE="ipkg remove" IPKG_INSTALL="ipkg install" echo "Upating opie" pack=`ipkg status | grep Package | grep -i opie | sed "s/Package://"` echo "Stopping Opie" `/etc/init.d/opie stop` echo "start" > /tmp/update.log for p in $pack; do cmd="$IPKG_REMOVE $p" echo "rem. $p" >> /tmp/update.log $cmd done -#to be sure... -#... to have an endless loop ;-) -# so comment it! -#pack2=`ipkg status | grep Package | grep -i opie | sed "s/Package://"` -#while [ $pack2 != "" ] -#do -#echo "debug: while loop: $pack2" -#for p in $pack2; do -#echo "debug for loop: $p" -#cmd="$IPKG_REMOVE $p" -#echo "$cmd" -#$cmd -#done -#pack2=`ipkg status | grep Package | grep -i opie | sed "s/Package://"` -#done; - #might help sync echo "Updateing" `ipkg update` for p in $pack; do cmd="$IPKG_INSTALL $p" echo "inst. $p" >> /tmp/update.log echo "$cmd" $cmd |