summaryrefslogtreecommitdiff
path: root/scripts
Unidiff
Diffstat (limited to 'scripts') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/update/opie-update.postinst2
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
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 || /etc/init.d/qpe 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$IPKG_REMOVE qpe-pics
22 23
23#might help 24#might help
24sync 25sync
25 26
26 27
27echo "Updating" 28echo "Updating"
28`ipkg update` 29`ipkg update`
29 30
30for p in $pack; do 31for p in $pack; do
31echo "inst. $p" >> /tmp/update.log 32echo "inst. $p" >> /tmp/update.log
32$IPKG_INSTALL $p 33$IPKG_INSTALL $p
33done 34done
35$IPKG_INSTALL opie-pics
34 36
35ipkg remove opie-update 37ipkg remove opie-update
36 38
37echo "Starting Opie" 39echo "Starting Opie"
38/etc/init.d/opie start || /etc/init.d/qpe start 40/etc/init.d/opie start || /etc/init.d/qpe start