-rw-r--r-- | scripts/remove/opie-remove.control | 4 | ||||
-rwxr-xr-x | scripts/remove/opie-remove.postinst | 32 |
2 files changed, 36 insertions, 0 deletions
diff --git a/scripts/remove/opie-remove.control b/scripts/remove/opie-remove.control new file mode 100644 index 0000000..68341f2 --- a/dev/null +++ b/scripts/remove/opie-remove.control | |||
@@ -0,0 +1,4 @@ | |||
1 | Packagename: opie-remove | ||
2 | Maintainer: Patrick S. Vogt <tille@handhelds.org> | ||
3 | Version: 0.9.1 | ||
4 | Description: Remove opie | ||
diff --git a/scripts/remove/opie-remove.postinst b/scripts/remove/opie-remove.postinst new file mode 100755 index 0000000..fbbdf63 --- a/dev/null +++ b/scripts/remove/opie-remove.postinst | |||
@@ -0,0 +1,32 @@ | |||
1 | #!/bin/ash | ||
2 | # | ||
3 | # script to remove | ||
4 | # | ||
5 | # it's free so do not sell it | ||
6 | # (c) patrick s. vogtp <tille@handhelds.org> | ||
7 | |||
8 | IPKG_REMOVE="ipkg remove" | ||
9 | |||
10 | echo "Upating opie" | ||
11 | pack=`ipkg status | grep Package | grep -i opie | grep -v remove | sed "s/Package://"` | ||
12 | |||
13 | echo "Stopping Opie" | ||
14 | /etc/init.d/opie 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 opie-remove | ||
29 | |||
30 | #might help | ||
31 | sync | ||
32 | |||