-rwxr-xr-x | scripts/update/opie-update.postinst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/update/opie-update.postinst b/scripts/update/opie-update.postinst index f761b67..02129d0 100755 --- a/scripts/update/opie-update.postinst +++ b/scripts/update/opie-update.postinst | |||
@@ -1,38 +1,40 @@ | |||
1 | #!/bin/ash | 1 | #!/bin/ash |
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 | grep -v update | sed "s/Package://"` | 11 | pack=`ipkg status | grep Package | grep -i opie | grep -v update | sed "s/Package://"` |
12 | 12 | ||
13 | echo "Stopping Opie" | 13 | echo "Stopping Opie" |
14 | /etc/init.d/opie stop || /etc/init.d/qpe stop | 14 | /etc/init.d/opie stop || /etc/init.d/qpe stop |
15 | 15 | ||
16 | echo "start" > /tmp/update.log | 16 | echo "start" > /tmp/update.log |
17 | 17 | ||
18 | for p in $pack; do | 18 | for p in $pack; do |
19 | echo "rem. $p" >> /tmp/update.log | 19 | echo "rem. $p" >> /tmp/update.log |
20 | $IPKG_REMOVE $p | 20 | $IPKG_REMOVE $p |
21 | done | 21 | done |
22 | $IPKG_REMOVE qpe-pics | ||
22 | 23 | ||
23 | #might help | 24 | #might help |
24 | sync | 25 | sync |
25 | 26 | ||
26 | 27 | ||
27 | echo "Updating" | 28 | echo "Updating" |
28 | `ipkg update` | 29 | `ipkg update` |
29 | 30 | ||
30 | for p in $pack; do | 31 | for p in $pack; do |
31 | echo "inst. $p" >> /tmp/update.log | 32 | echo "inst. $p" >> /tmp/update.log |
32 | $IPKG_INSTALL $p | 33 | $IPKG_INSTALL $p |
33 | done | 34 | done |
35 | $IPKG_INSTALL opie-pics | ||
34 | 36 | ||
35 | ipkg remove opie-update | 37 | ipkg remove opie-update |
36 | 38 | ||
37 | echo "Starting Opie" | 39 | echo "Starting Opie" |
38 | /etc/init.d/opie start || /etc/init.d/qpe start | 40 | /etc/init.d/opie start || /etc/init.d/qpe start |