summaryrefslogtreecommitdiff
authortille <tille>2002-06-24 17:28:13 (UTC)
committer tille <tille>2002-06-24 17:28:13 (UTC)
commitf7bc3e18fbdb448c8f502ab06fc25ac4dc21d734 (patch) (unidiff)
tree3a7359d9182728ddd439d39fd0745bede4b07b9e
parentf63713e7e31196360f49f0a768e103a59bb0e79d (diff)
downloadopie-f7bc3e18fbdb448c8f502ab06fc25ac4dc21d734.zip
opie-f7bc3e18fbdb448c8f502ab06fc25ac4dc21d734.tar.gz
opie-f7bc3e18fbdb448c8f502ab06fc25ac4dc21d734.tar.bz2
bash ;-(
Diffstat (more/less context) (show 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://"`
14echo "Stopping Opie" 14echo "Stopping Opie"
15`/etc/init.d/opie stop` 15/etc/init.d/opie stop
16 16
@@ -19,6 +19,7 @@ echo "start" > /tmp/update.log
19for p in $pack; do 19for p in $pack; do
20cmd="$IPKG_REMOVE $p"
21echo "rem. $p" >> /tmp/update.log 20echo "rem. $p" >> /tmp/update.log
22if [$p!="opie-update]; then 21if [["$p"="opie-update"]]; then
23$cmd; 22echo ""
23else
24$IPKG_REMOVE $p
24fi 25fi
@@ -34,6 +35,7 @@ echo "Updating"
34for p in $pack; do 35for p in $pack; do
35cmd="$IPKG_INSTALL $p"
36echo "inst. $p" >> /tmp/update.log 36echo "inst. $p" >> /tmp/update.log
37if [$p!="opie-update]; then 37if [["$p"="opie-update"]]; then
38$cmd; 38echo ""
39else
40$IPKG_INSTALL $p
39fi 41fi
@@ -44,2 +46,2 @@ ipkg remove opie-update
44echo "Starting Opie" 46echo "Starting Opie"
45`/etc/init.d/opie start` 47/etc/init.d/opie start