author | tille <tille> | 2002-06-24 17:28:13 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-24 17:28:13 (UTC) |
commit | f7bc3e18fbdb448c8f502ab06fc25ac4dc21d734 (patch) (side-by-side diff) | |
tree | 3a7359d9182728ddd439d39fd0745bede4b07b9e /scripts | |
parent | f63713e7e31196360f49f0a768e103a59bb0e79d (diff) | |
download | opie-f7bc3e18fbdb448c8f502ab06fc25ac4dc21d734.zip opie-f7bc3e18fbdb448c8f502ab06fc25ac4dc21d734.tar.gz opie-f7bc3e18fbdb448c8f502ab06fc25ac4dc21d734.tar.bz2 |
bash ;-(
-rwxr-xr-x | scripts/update/opie-update.postinst | 18 |
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 @@ -13,13 +13,14 @@ pack=`ipkg status | grep Package | grep -i opie | sed "s/Package://"` echo "Stopping Opie" -`/etc/init.d/opie stop` +/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 -if [$p!="opie-update]; then -$cmd; +if [["$p"="opie-update"]]; then +echo "" +else +$IPKG_REMOVE $p fi done @@ -33,8 +34,9 @@ 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 done @@ -43,3 +45,3 @@ ipkg remove opie-update echo "Starting Opie" -`/etc/init.d/opie start` +/etc/init.d/opie start |