author | tille <tille> | 2002-06-24 17:28:13 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-24 17:28:13 (UTC) |
commit | f7bc3e18fbdb448c8f502ab06fc25ac4dc21d734 (patch) (unidiff) | |
tree | 3a7359d9182728ddd439d39fd0745bede4b07b9e /scripts/update | |
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 | |||
@@ -12,15 +12,16 @@ pack=`ipkg status | grep Package | grep -i opie | sed "s/Package://"` | |||
12 | 12 | ||
13 | 13 | ||
14 | echo "Stopping Opie" | 14 | echo "Stopping Opie" |
15 | `/etc/init.d/opie stop` | 15 | /etc/init.d/opie stop |
16 | 16 | ||
17 | echo "start" > /tmp/update.log | 17 | echo "start" > /tmp/update.log |
18 | 18 | ||
19 | for p in $pack; do | 19 | for p in $pack; do |
20 | cmd="$IPKG_REMOVE $p" | ||
21 | echo "rem. $p" >> /tmp/update.log | 20 | echo "rem. $p" >> /tmp/update.log |
22 | if [$p!="opie-update]; then | 21 | if [["$p"="opie-update"]]; then |
23 | $cmd; | 22 | echo "" |
23 | else | ||
24 | $IPKG_REMOVE $p | ||
24 | fi | 25 | fi |
25 | done | 26 | done |
26 | 27 | ||
@@ -32,14 +33,15 @@ echo "Updating" | |||
32 | `ipkg update` | 33 | `ipkg update` |
33 | 34 | ||
34 | for p in $pack; do | 35 | for p in $pack; do |
35 | cmd="$IPKG_INSTALL $p" | ||
36 | echo "inst. $p" >> /tmp/update.log | 36 | echo "inst. $p" >> /tmp/update.log |
37 | if [$p!="opie-update]; then | 37 | if [["$p"="opie-update"]]; then |
38 | $cmd; | 38 | echo "" |
39 | else | ||
40 | $IPKG_INSTALL $p | ||
39 | fi | 41 | fi |
40 | done | 42 | done |
41 | 43 | ||
42 | ipkg remove opie-update | 44 | ipkg remove opie-update |
43 | 45 | ||
44 | echo "Starting Opie" | 46 | echo "Starting Opie" |
45 | `/etc/init.d/opie start` | 47 | /etc/init.d/opie start |