author | tille <tille> | 2002-08-25 12:41:27 (UTC) |
---|---|---|
committer | tille <tille> | 2002-08-25 12:41:27 (UTC) |
commit | 071a163748d29a786c24cc0f68cd6e9bb9cdb586 (patch) (unidiff) | |
tree | 45b03004ccf47a99c958e610b66ab76ce27eb72c /scripts/update/qpe-opie-update.postinst | |
parent | 120b6694c2a38d9838037e6337b6480a4f8209e2 (diff) | |
download | opie-071a163748d29a786c24cc0f68cd6e9bb9cdb586.zip opie-071a163748d29a786c24cc0f68cd6e9bb9cdb586.tar.gz opie-071a163748d29a786c24cc0f68cd6e9bb9cdb586.tar.bz2 |
make it easy to update qtopia to opie...
... if it works -- no means for testing atm
Diffstat (limited to 'scripts/update/qpe-opie-update.postinst') (more/less context) (show whitespace changes)
-rwxr-xr-x | scripts/update/qpe-opie-update.postinst | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/scripts/update/qpe-opie-update.postinst b/scripts/update/qpe-opie-update.postinst new file mode 100755 index 0000000..e06651f --- a/dev/null +++ b/scripts/update/qpe-opie-update.postinst | |||
@@ -0,0 +1,46 @@ | |||
1 | #!/bin/ash | ||
2 | # | ||
3 | # script to remove qtopiæ and install opie | ||
4 | # | ||
5 | # it's free so do not sell it | ||
6 | # (c) patrick s. vogt <tille@handhelds.org> | ||
7 | |||
8 | IPKG_REMOVE="ipkg remove" | ||
9 | IPKG_INSTALL="ipkg install" | ||
10 | |||
11 | echo "Upating Qtopia to Opie" | ||
12 | pack=`ipkg status | grep Package | grep -i qpe | sed "s/Package://"` | ||
13 | pack2=`ipkg status | grep Package | grep -i qpe | sed "s/Package://" | sed "s/qpe/opie/"` | ||
14 | |||
15 | echo "Stopping Qtopia" | ||
16 | /etc/init.d/qpe stop | ||
17 | |||
18 | echo "start" > /tmp/update.log | ||
19 | |||
20 | for p in $pack; do | ||
21 | echo "rem. $p" >> /tmp/update.log | ||
22 | $IPKG_REMOVE $p | ||
23 | done | ||
24 | $IPKG_REMOVE qpe-pics | ||
25 | $IPKG_REMOVE ipaqalarm | ||
26 | $IPKG_REMOVE qpe2schedule | ||
27 | $IPKG_REMOVE uschedule | ||
28 | |||
29 | #might help | ||
30 | sync | ||
31 | |||
32 | |||
33 | echo "Updating" | ||
34 | `ipkg update` | ||
35 | |||
36 | for p in $pack2; do | ||
37 | echo "inst. $p" >> /tmp/update.log | ||
38 | $IPKG_INSTALL $p | ||
39 | done | ||
40 | $IPKG_INSTALL opie-pics | ||
41 | $IPKG_INSTALL opiealarm | ||
42 | |||
43 | ipkg remove qpe-opie-update | ||
44 | |||
45 | echo "Starting Opie" | ||
46 | /etc/init.d/opie start || /etc/init.d/qpe start | ||