author | tille <tille> | 2002-06-24 17:03:02 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-24 17:03:02 (UTC) |
commit | db5385bc16f56b4c5b84ad4a92ac6bdd46eea321 (patch) (unidiff) | |
tree | 160e2c2b49ed844b7c83b99ee341ef9e03e13e28 /scripts | |
parent | 0b3348fb1177e479b73ac264048b440ceeb24710 (diff) | |
download | opie-db5385bc16f56b4c5b84ad4a92ac6bdd46eea321.zip opie-db5385bc16f56b4c5b84ad4a92ac6bdd46eea321.tar.gz opie-db5385bc16f56b4c5b84ad4a92ac6bdd46eea321.tar.bz2 |
hmm
-rwxr-xr-x | scripts/update/opie-update.postinst | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/update/opie-update.postinst b/scripts/update/opie-update.postinst index d42169b..b86bc31 100755 --- a/scripts/update/opie-update.postinst +++ b/scripts/update/opie-update.postinst | |||
@@ -10,33 +10,36 @@ IPKG_INSTALL="ipkg install" | |||
10 | echo "Upating opie" | 10 | echo "Upating opie" |
11 | pack=`ipkg status | grep Package | grep -i opie | sed "s/Package://"` | 11 | pack=`ipkg status | grep Package | grep -i opie | sed "s/Package://"` |
12 | 12 | ||
13 | 13 | ||
14 | echo "Stopping Opie" | 14 | echo "Stopping Opie" |
15 | `/etc/init.d/opie stop` | 15 | `/etc/init.d/opie stop` |
16 | 16 | ||
17 | echo "start" > /tmp/update.log | 17 | echo "start" > /tmp/update.log |
18 | 18 | ||
19 | for p in $pack; do | 19 | for p in $pack; do |
20 | cmd="$IPKG_REMOVE $p" | 20 | cmd="$IPKG_REMOVE $p" |
21 | echo "rem. $p" >> /tmp/update.log | 21 | echo "rem. $p" >> /tmp/update.log |
22 | $cmd | 22 | if [$p!="opie-update]; then |
23 | $cmd; | ||
24 | fi | ||
23 | done | 25 | done |
24 | 26 | ||
25 | #might help | 27 | #might help |
26 | sync | 28 | sync |
27 | 29 | ||
28 | 30 | ||
29 | echo "Updateing" | 31 | echo "Updating" |
30 | `ipkg update` | 32 | `ipkg update` |
31 | 33 | ||
32 | for p in $pack; do | 34 | for p in $pack; do |
33 | cmd="$IPKG_INSTALL $p" | 35 | cmd="$IPKG_INSTALL $p" |
34 | echo "inst. $p" >> /tmp/update.log | 36 | echo "inst. $p" >> /tmp/update.log |
35 | echo "$cmd" | 37 | if [$p!="opie-update]; then |
36 | $cmd | 38 | $cmd; |
39 | fi | ||
37 | done | 40 | done |
38 | 41 | ||
39 | ipkg remove opie-update | 42 | ipkg remove opie-update |
40 | 43 | ||
41 | echo "Starting Opie" | 44 | echo "Starting Opie" |
42 | `/etc/init.d/opie start` | 45 | `/etc/init.d/opie start` |