summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (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
@@ -1,42 +1,45 @@
#!/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
+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`