summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/update/opie-update.postinst18
1 files changed, 10 insertions, 8 deletions
diff --git a/scripts/update/opie-update.postinst b/scripts/update/opie-update.postinst
index b86bc31..f056e49 100755
--- a/scripts/update/opie-update.postinst
+++ b/scripts/update/opie-update.postinst
@@ -9,37 +9,39 @@ IPKG_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 | 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
20cmd="$IPKG_REMOVE $p"
21echo "rem. $p" >> /tmp/update.log 20echo "rem. $p" >> /tmp/update.log
22if [$p!="opie-update]; then 21if [["$p"="opie-update"]]; then
23$cmd; 22echo ""
23else
24$IPKG_REMOVE $p
24fi 25fi
25done 26done
26 27
27#might help 28#might help
28sync 29sync
29 30
30 31
31echo "Updating" 32echo "Updating"
32`ipkg update` 33`ipkg update`
33 34
34for p in $pack; do 35for p in $pack; do
35cmd="$IPKG_INSTALL $p"
36echo "inst. $p" >> /tmp/update.log 36echo "inst. $p" >> /tmp/update.log
37if [$p!="opie-update]; then 37if [["$p"="opie-update"]]; then
38$cmd; 38echo ""
39else
40$IPKG_INSTALL $p
39fi 41fi
40done 42done
41 43
42ipkg remove opie-update 44ipkg remove opie-update
43 45
44echo "Starting Opie" 46echo "Starting Opie"
45`/etc/init.d/opie start` 47/etc/init.d/opie start