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

Revision 1223, 0.8 KB (checked in by gonzalo, 12 months ago)
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#########################################
9rm -fR /usr/local/bin/lynx
10rm -fR /usr/local/etc/lynx.cfg.default
11rm -fR /usr/local/etc/lynx.lss
12rm -fR /usr/local/man/man1/lynx.1.gz
13rm -fR /usr/local/share/doc/lynx
14rm -fR /usr/local/share/lynx_help
15rm -fR /usr/local/etc/lynx.cfg
16
17if [ ! -z "$DISPLAY" ]
18then
19 # Ask if we want to remove the user profiles
20 kdialog --yesno "Do you want to remove Lynx user settings?" --title "Remove user settings"
21 if [ "$?" = "0" ]
22 then
23  cd /home
24  for i in `ls`
25  do
26   if [ -e "/home/${i}/.lynx" ]
27   then
28    rm -rf /home/${i}/.lynx
29   fi
30  done
31 fi
32fi
Note: See TracBrowser for help on using the browser.