-rwxr-xr-x | scripts/update/opie-update.postinst | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/update/opie-update.postinst b/scripts/update/opie-update.postinst index d42169b..b86bc31 100755 --- a/scripts/update/opie-update.postinst +++ b/scripts/update/opie-update.postinst @@ -16,27 +16,30 @@ echo "Stopping Opie" echo "start" > /tmp/update.log for p in $pack; do cmd="$IPKG_REMOVE $p" echo "rem. $p" >> /tmp/update.log -$cmd +if [$p!="opie-update]; then +$cmd; +fi done #might help sync -echo "Updateing" +echo "Updating" `ipkg update` for p in $pack; do cmd="$IPKG_INSTALL $p" echo "inst. $p" >> /tmp/update.log -echo "$cmd" -$cmd +if [$p!="opie-update]; then +$cmd; +fi done ipkg remove opie-update echo "Starting Opie" `/etc/init.d/opie start` |