Diffstat (limited to 'scripts/remove/opie-remove.postinst') (more/less context) (show whitespace changes)
-rwxr-xr-x | scripts/remove/opie-remove.postinst | 32 |
1 files changed, 32 insertions, 0 deletions
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 | |||