summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/update/opie-update.postinst2
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,35 +1,35 @@
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
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 | sed "s/Package://"` 11pack=`ipkg status | grep Package | grep -i opie | grep -v update | sed "s/Package://"`
12 12
13 13
14echo "Stopping Opie" 14echo "Stopping Opie"
15/etc/init.d/opie stop 15/etc/init.d/opie stop
16 16
17echo "start" > /tmp/update.log 17echo "start" > /tmp/update.log
18 18
19for p in $pack; do 19for p in $pack; do
20echo "rem. $p" >> /tmp/update.log 20echo "rem. $p" >> /tmp/update.log
21if [["$p"="opie-update"]]; then 21if [["$p"="opie-update"]]; then
22echo "" 22echo ""
23else 23else
24$IPKG_REMOVE $p 24$IPKG_REMOVE $p
25fi 25fi
26done 26done
27 27
28#might help 28#might help
29sync 29sync
30 30
31 31
32echo "Updating" 32echo "Updating"
33`ipkg update` 33`ipkg update`
34 34
35for p in $pack; do 35for p in $pack; do