summaryrefslogtreecommitdiff
authortille <tille>2002-06-25 08:15:57 (UTC)
committer tille <tille>2002-06-25 08:15:57 (UTC)
commit40c25709bb368477f482319c7723bcf2fca15708 (patch) (unidiff)
treeff2cf3008770ce66d676a0d67548822781ed2cc9
parent2aef4b3475079ff9902f7b9171d064f02691b429 (diff)
downloadopie-40c25709bb368477f482319c7723bcf2fca15708.zip
opie-40c25709bb368477f482319c7723bcf2fca15708.tar.gz
opie-40c25709bb368477f482319c7723bcf2fca15708.tar.bz2
opie || qpe
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/update/opie-update.postinst4
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
8IPKG_REMOVE="ipkg remove" 8IPKG_REMOVE="ipkg remove"
9IPKG_INSTALL="ipkg install" 9IPKG_INSTALL="ipkg install"
10echo "Upating opie" 10echo "Upating opie"
11pack=`ipkg status | grep Package | grep -i opie | grep -v update | sed "s/Package://"` 11pack=`ipkg status | grep Package | grep -i opie | grep -v update | sed "s/Package://"`
12 12
13echo "Stopping Opie" 13echo "Stopping Opie"
14/etc/init.d/opie stop 14/etc/init.d/opie stop || /etc/init.d/qpe stop
15 15
16echo "start" > /tmp/update.log 16echo "start" > /tmp/update.log
17 17
18for p in $pack; do 18for p in $pack; do
19echo "rem. $p" >> /tmp/update.log 19echo "rem. $p" >> /tmp/update.log
20$IPKG_REMOVE $p 20$IPKG_REMOVE $p
21done 21done
22 22
23#might help 23#might help
24sync 24sync
25 25
26 26
27echo "Updating" 27echo "Updating"
28`ipkg update` 28`ipkg update`
29 29
30for p in $pack; do 30for p in $pack; do
31echo "inst. $p" >> /tmp/update.log 31echo "inst. $p" >> /tmp/update.log
32$IPKG_INSTALL $p 32$IPKG_INSTALL $p
33done 33done
34 34
35ipkg remove opie-update 35ipkg remove opie-update
36 36
37echo "Starting Opie" 37echo "Starting Opie"
38/etc/init.d/opie start 38/etc/init.d/opie start || /etc/init.d/qpe start