summaryrefslogtreecommitdiff
path: root/scripts/update
Unidiff
Diffstat (limited to 'scripts/update') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/update/opie-update.postinst2
-rw-r--r--scripts/update/qpe-opie-update.control7
-rwxr-xr-xscripts/update/qpe-opie-update.postinst46
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
@@ -3,7 +3,7 @@
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
8IPKG_REMOVE="ipkg remove" 8IPKG_REMOVE="ipkg remove"
9IPKG_INSTALL="ipkg install" 9IPKG_INSTALL="ipkg install"
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 @@
1Packagename: qpe-opie-update
2Maintainer: Patrick S. Vogt <tille@handhelds.org>
3Section: opie/system
4Version: 0.9.1
5Description: Remove qtopia and install opie. Dummy package that removes qtopia
6and installs opie, by removing everything and installing the same opie
7packages.
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
8IPKG_REMOVE="ipkg remove"
9IPKG_INSTALL="ipkg install"
10
11echo "Upating Qtopia to Opie"
12pack=`ipkg status | grep Package | grep -i qpe | sed "s/Package://"`
13pack2=`ipkg status | grep Package | grep -i qpe | sed "s/Package://" | sed "s/qpe/opie/"`
14
15echo "Stopping Qtopia"
16/etc/init.d/qpe stop
17
18echo "start" > /tmp/update.log
19
20for p in $pack; do
21echo "rem. $p" >> /tmp/update.log
22$IPKG_REMOVE $p
23done
24$IPKG_REMOVE qpe-pics
25$IPKG_REMOVE ipaqalarm
26$IPKG_REMOVE qpe2schedule
27$IPKG_REMOVE uschedule
28
29#might help
30sync
31
32
33echo "Updating"
34`ipkg update`
35
36for p in $pack2; do
37echo "inst. $p" >> /tmp/update.log
38$IPKG_INSTALL $p
39done
40$IPKG_INSTALL opie-pics
41$IPKG_INSTALL opiealarm
42
43ipkg remove qpe-opie-update
44
45echo "Starting Opie"
46/etc/init.d/opie start || /etc/init.d/qpe start