author | tille <tille> | 2002-06-25 08:15:57 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-25 08:15:57 (UTC) |
commit | 40c25709bb368477f482319c7723bcf2fca15708 (patch) (unidiff) | |
tree | ff2cf3008770ce66d676a0d67548822781ed2cc9 | |
parent | 2aef4b3475079ff9902f7b9171d064f02691b429 (diff) | |
download | opie-40c25709bb368477f482319c7723bcf2fca15708.zip opie-40c25709bb368477f482319c7723bcf2fca15708.tar.gz opie-40c25709bb368477f482319c7723bcf2fca15708.tar.bz2 |
opie || qpe
-rwxr-xr-x | scripts/update/opie-update.postinst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/update/opie-update.postinst b/scripts/update/opie-update.postinst index e32fab9..f761b67 100755 --- a/scripts/update/opie-update.postinst +++ b/scripts/update/opie-update.postinst | |||
@@ -1,38 +1,38 @@ | |||
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 | 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 | 22 | ||
23 | #might help | 23 | #might help |
24 | sync | 24 | sync |
25 | 25 | ||
26 | 26 | ||
27 | echo "Updating" | 27 | echo "Updating" |
28 | `ipkg update` | 28 | `ipkg update` |
29 | 29 | ||
30 | for p in $pack; do | 30 | for p in $pack; do |
31 | echo "inst. $p" >> /tmp/update.log | 31 | echo "inst. $p" >> /tmp/update.log |
32 | $IPKG_INSTALL $p | 32 | $IPKG_INSTALL $p |
33 | done | 33 | done |
34 | 34 | ||
35 | ipkg remove opie-update | 35 | ipkg remove opie-update |
36 | 36 | ||
37 | echo "Starting Opie" | 37 | echo "Starting Opie" |
38 | /etc/init.d/opie start | 38 | /etc/init.d/opie start || /etc/init.d/qpe start |