root/pbibuild/modules/mldonkey/overlay-dir/PBI.RemoveScript.sh

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
10rm -fR /usr/local/bin/mld_hash
11rm -fR /usr/local/bin/mldonkey_previewer
12rm -fR /usr/local/bin/mlgui
13rm -fR /usr/local/bin/mlguistarter
14rm -fR /usr/local/bin/mlnet
15rm -fR /usr/local/bin/mlnet+gui
16rm -fR /usr/local/bin/mlnet-real
17rm -fR /usr/local/bin/startmldonkey
18rm -fR /usr/local/etc/rc.d/mlnet
19rm -fR /usr/local/share/doc/mldonkey
20rm -fR /usr/local/share/examples/mldonkey
21
22
23if [ ! -z "$DISPLAY" ]
24then
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
38fi
Note: See TracBrowser for help on using the browser.