summaryrefslogtreecommitdiff
path: root/scripts
Side-by-side diff
Diffstat (limited to 'scripts') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/update/opie-update.postinst11
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
@@ -19,21 +19,24 @@ 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