summaryrefslogtreecommitdiff
path: root/scripts/update
Side-by-side diff
Diffstat (limited to 'scripts/update') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/update/opie-update.postinst18
1 files changed, 10 insertions, 8 deletions
diff --git a/scripts/update/opie-update.postinst b/scripts/update/opie-update.postinst
index b86bc31..f056e49 100755
--- a/scripts/update/opie-update.postinst
+++ b/scripts/update/opie-update.postinst
@@ -14,3 +14,3 @@ pack=`ipkg status | grep Package | grep -i opie | sed "s/Package://"`
echo "Stopping Opie"
-`/etc/init.d/opie stop`
+/etc/init.d/opie stop
@@ -19,6 +19,7 @@ echo "start" > /tmp/update.log
for p in $pack; do
-cmd="$IPKG_REMOVE $p"
echo "rem. $p" >> /tmp/update.log
-if [$p!="opie-update]; then
-$cmd;
+if [["$p"="opie-update"]]; then
+echo ""
+else
+$IPKG_REMOVE $p
fi
@@ -34,6 +35,7 @@ echo "Updating"
for p in $pack; do
-cmd="$IPKG_INSTALL $p"
echo "inst. $p" >> /tmp/update.log
-if [$p!="opie-update]; then
-$cmd;
+if [["$p"="opie-update"]]; then
+echo ""
+else
+$IPKG_INSTALL $p
fi
@@ -44,2 +46,2 @@ ipkg remove opie-update
echo "Starting Opie"
-`/etc/init.d/opie start`
+/etc/init.d/opie start