-rwxr-xr-x | scripts/update/opie-update.postinst | 2 | ||||
-rw-r--r-- | scripts/update/qpe-opie-update.control | 7 | ||||
-rwxr-xr-x | scripts/update/qpe-opie-update.postinst | 46 |
3 files changed, 54 insertions, 1 deletions
diff --git a/scripts/update/opie-update.postinst b/scripts/update/opie-update.postinst index 22d3628..695653e 100755 --- a/scripts/update/opie-update.postinst +++ b/scripts/update/opie-update.postinst | |||
@@ -1,45 +1,45 @@ | |||
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. vogt <tille@handhelds.org> |
7 | 7 | ||
8 | IPKG_REMOVE="ipkg remove" | 8 | IPKG_REMOVE="ipkg remove" |
9 | IPKG_INSTALL="ipkg install" | 9 | IPKG_INSTALL="ipkg install" |
10 | 10 | ||
11 | echo "Upating opie" | 11 | echo "Upating opie" |
12 | pack=`ipkg status | grep Package | grep -i opie | grep -v update | sed "s/Package://"` | 12 | pack=`ipkg status | grep Package | grep -i opie | grep -v update | sed "s/Package://"` |
13 | 13 | ||
14 | echo "Stopping Opie" | 14 | echo "Stopping Opie" |
15 | /etc/init.d/opie stop || /etc/init.d/qpe stop | 15 | /etc/init.d/opie stop || /etc/init.d/qpe 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 | echo "rem. $p" >> /tmp/update.log | 20 | echo "rem. $p" >> /tmp/update.log |
21 | $IPKG_REMOVE $p | 21 | $IPKG_REMOVE $p |
22 | done | 22 | done |
23 | $IPKG_REMOVE qpe-pics | 23 | $IPKG_REMOVE qpe-pics |
24 | $IPKG_REMOVE ipaqalarm | 24 | $IPKG_REMOVE ipaqalarm |
25 | $IPKG_REMOVE qpe2schedule | 25 | $IPKG_REMOVE qpe2schedule |
26 | $IPKG_REMOVE uschedule | 26 | $IPKG_REMOVE uschedule |
27 | 27 | ||
28 | #might help | 28 | #might help |
29 | sync | 29 | sync |
30 | 30 | ||
31 | 31 | ||
32 | echo "Updating" | 32 | echo "Updating" |
33 | `ipkg update` | 33 | `ipkg update` |
34 | 34 | ||
35 | for p in $pack; do | 35 | for p in $pack; do |
36 | echo "inst. $p" >> /tmp/update.log | 36 | echo "inst. $p" >> /tmp/update.log |
37 | $IPKG_INSTALL $p | 37 | $IPKG_INSTALL $p |
38 | done | 38 | done |
39 | $IPKG_INSTALL opie-pics | 39 | $IPKG_INSTALL opie-pics |
40 | $IPKG_INSTALL opiealarm | 40 | $IPKG_INSTALL opiealarm |
41 | 41 | ||
42 | ipkg remove opie-update | 42 | ipkg remove opie-update |
43 | 43 | ||
44 | echo "Starting Opie" | 44 | echo "Starting Opie" |
45 | /etc/init.d/opie start || /etc/init.d/qpe start | 45 | /etc/init.d/opie start || /etc/init.d/qpe start |
diff --git a/scripts/update/qpe-opie-update.control b/scripts/update/qpe-opie-update.control new file mode 100644 index 0000000..329754a --- a/dev/null +++ b/scripts/update/qpe-opie-update.control | |||
@@ -0,0 +1,7 @@ | |||
1 | Packagename: qpe-opie-update | ||
2 | Maintainer: Patrick S. Vogt <tille@handhelds.org> | ||
3 | Section: opie/system | ||
4 | Version: 0.9.1 | ||
5 | Description: Remove qtopia and install opie. Dummy package that removes qtopia | ||
6 | and installs opie, by removing everything and installing the same opie | ||
7 | packages. | ||
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 | ||