author | tille <tille> | 2002-08-25 11:54:23 (UTC) |
---|---|---|
committer | tille <tille> | 2002-08-25 11:54:23 (UTC) |
commit | ef2d8a825e0f5bc9edaa35330c076edd8d7ca35d (patch) (unidiff) | |
tree | 00f284180882efbc9c247f558eb65d103da55f01 /scripts | |
parent | 4e1a0d708c7ff0b7b1c3ad15bcae933b76e1ae5e (diff) | |
download | opie-ef2d8a825e0f5bc9edaa35330c076edd8d7ca35d.zip opie-ef2d8a825e0f5bc9edaa35330c076edd8d7ca35d.tar.gz opie-ef2d8a825e0f5bc9edaa35330c076edd8d7ca35d.tar.bz2 |
for carsten
-rw-r--r-- | scripts/remove/qpe-remove.control | 5 | ||||
-rwxr-xr-x | scripts/remove/qpe-remove.postinst | 34 |
2 files changed, 39 insertions, 0 deletions
diff --git a/scripts/remove/qpe-remove.control b/scripts/remove/qpe-remove.control new file mode 100644 index 0000000..b239713 --- a/dev/null +++ b/scripts/remove/qpe-remove.control | |||
@@ -0,0 +1,5 @@ | |||
1 | Packagename: qpe | ||
2 | Maintainer: Patrick S. Vogt <tille@handhelds.org> | ||
3 | Section: opie/system | ||
4 | Version: 0.9.1 | ||
5 | Description: Remove qtopia -- Use at own risc -- will remove qtopia and /opt/QtPalmtop/ | ||
diff --git a/scripts/remove/qpe-remove.postinst b/scripts/remove/qpe-remove.postinst new file mode 100755 index 0000000..b1401ce --- a/dev/null +++ b/scripts/remove/qpe-remove.postinst | |||
@@ -0,0 +1,34 @@ | |||
1 | #!/bin/ash | ||
2 | # | ||
3 | # script to remove | ||
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 | |||
10 | echo "Upating qpe" | ||
11 | pack=`ipkg status | grep Package | grep -i qpe | grep -v remove | sed "s/Package://"` | ||
12 | |||
13 | echo "Stopping Qtopia" | ||
14 | /etc/init.d/qpe stop || /etc/init.d/qpe stop | ||
15 | |||
16 | echo "start" > /tmp/update.log | ||
17 | |||
18 | for p in $pack; do | ||
19 | echo "rem. $p" >> /tmp/update.log | ||
20 | $IPKG_REMOVE $p | ||
21 | done | ||
22 | $IPKG_REMOVE qpe-pics | ||
23 | $IPKG_REMOVE ipaqalarm | ||
24 | $IPKG_REMOVE qpe2schedule | ||
25 | $IPKG_REMOVE uschedule | ||
26 | $IPKG_REMOVE qt-embedded | ||
27 | $IPKG_REMOVE qt-embedded-rotation | ||
28 | $IPKG_REMOVE qpe-remove | ||
29 | |||
30 | rm -r /opt/QtPalmtop/ | ||
31 | |||
32 | #might help | ||
33 | sync | ||
34 | |||