|
Revision 2640, 1.0 KB
(checked in by kris, 5 months ago)
|
|
Fixed up startmldonkey and triggered a rebuild for MLDonkey
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | # Filename: PBI.RemoveScript.sh |
|---|
| 3 | # Place any custom removal code here. |
|---|
| 4 | # This script will be run before your program is deleted. |
|---|
| 5 | # ${1} is the directory name. |
|---|
| 6 | # ${2} is the username of person performing the deletion. |
|---|
| 7 | # TIP: 'kdialog' should be used for user interaction. |
|---|
| 8 | ######################################### |
|---|
| 9 | |
|---|
| 10 | rm -fR /usr/local/bin/mld_hash |
|---|
| 11 | rm -fR /usr/local/bin/mldonkey_previewer |
|---|
| 12 | rm -fR /usr/local/bin/mlgui |
|---|
| 13 | rm -fR /usr/local/bin/mlguistarter |
|---|
| 14 | rm -fR /usr/local/bin/mlnet |
|---|
| 15 | rm -fR /usr/local/bin/mlnet+gui |
|---|
| 16 | rm -fR /usr/local/bin/mlnet-real |
|---|
| 17 | rm -fR /usr/local/bin/startmldonkey |
|---|
| 18 | rm -fR /usr/local/etc/rc.d/mlnet |
|---|
| 19 | rm -fR /usr/local/share/doc/mldonkey |
|---|
| 20 | rm -fR /usr/local/share/examples/mldonkey |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | if [ ! -z "$DISPLAY" ] |
|---|
| 24 | then |
|---|
| 25 | # Ask if we want to remove the user profiles |
|---|
| 26 | kdialog --yesno "Do you want to remove MLDonkey user settings and temporal files?" --title "Remove user settings" |
|---|
| 27 | if [ "$?" = "0" ] |
|---|
| 28 | then |
|---|
| 29 | cd /home |
|---|
| 30 | for i in `ls` |
|---|
| 31 | do |
|---|
| 32 | if [ -e "/home/${i}/.mldonkey" ] |
|---|
| 33 | then |
|---|
| 34 | rm -rf /home/${i}/.mldonkey |
|---|
| 35 | fi |
|---|
| 36 | done |
|---|
| 37 | fi |
|---|
| 38 | fi |
|---|