author | tille <tille> | 2002-06-24 17:44:41 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-24 17:44:41 (UTC) |
commit | e9a211de0ae3623d0d665e4736009ef209f7516d (patch) (unidiff) | |
tree | 74118a2718518e5cc62fd9663c03005b07c574d8 | |
parent | f7bc3e18fbdb448c8f502ab06fc25ac4dc21d734 (diff) | |
download | opie-e9a211de0ae3623d0d665e4736009ef209f7516d.zip opie-e9a211de0ae3623d0d665e4736009ef209f7516d.tar.gz opie-e9a211de0ae3623d0d665e4736009ef209f7516d.tar.bz2 |
...
-rwxr-xr-x | scripts/update/opie-update.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/update/opie-update.postinst b/scripts/update/opie-update.postinst index f056e49..d7a1205 100755 --- a/scripts/update/opie-update.postinst +++ b/scripts/update/opie-update.postinst | |||
@@ -1,47 +1,47 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | # | 2 | # |
3 | # script to remove and reinstall opie | 3 | # script to remove and reinstall opie |
4 | # | 4 | # |
5 | # it's free so do not sell it | 5 | # it's free so do not sell it |
6 | # (c) patrick s. vogtp <tille@handhelds.org> | 6 | # (c) patrick s. vogtp <tille@handhelds.org> |
7 | 7 | ||
8 | IPKG_REMOVE="ipkg remove" | 8 | IPKG_REMOVE="ipkg remove" |
9 | IPKG_INSTALL="ipkg install" | 9 | IPKG_INSTALL="ipkg install" |
10 | echo "Upating opie" | 10 | echo "Upating opie" |
11 | pack=`ipkg status | grep Package | grep -i opie | sed "s/Package://"` | 11 | pack=`ipkg status | grep Package | grep -i opie | grep -v update | 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 | echo "rem. $p" >> /tmp/update.log | 20 | echo "rem. $p" >> /tmp/update.log |
21 | if [["$p"="opie-update"]]; then | 21 | if [["$p"="opie-update"]]; then |
22 | echo "" | 22 | echo "" |
23 | else | 23 | else |
24 | $IPKG_REMOVE $p | 24 | $IPKG_REMOVE $p |
25 | fi | 25 | fi |
26 | done | 26 | done |
27 | 27 | ||
28 | #might help | 28 | #might help |
29 | sync | 29 | sync |
30 | 30 | ||
31 | 31 | ||
32 | echo "Updating" | 32 | echo "Updating" |
33 | `ipkg update` | 33 | `ipkg update` |
34 | 34 | ||
35 | for p in $pack; do | 35 | for p in $pack; do |
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 | echo "" | 38 | echo "" |
39 | else | 39 | else |
40 | $IPKG_INSTALL $p | 40 | $IPKG_INSTALL $p |
41 | fi | 41 | fi |
42 | done | 42 | done |
43 | 43 | ||
44 | ipkg remove opie-update | 44 | ipkg remove opie-update |
45 | 45 | ||
46 | echo "Starting Opie" | 46 | echo "Starting Opie" |
47 | /etc/init.d/opie start | 47 | /etc/init.d/opie start |