Subversion Repositories ALCASAR

Rev

Rev 109 | Rev 146 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 109 Rev 110
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-uninstall.sh 109 2010-05-10 19:46:20Z richard $
2
# $Id: alcasar-uninstall.sh 110 2010-05-11 16:35:34Z richard $
3
 
3
 
4
# alcasar-uninstall.sh
4
# alcasar-uninstall.sh
5
# by 3abtux, angel95 and rexy
5
# by 3abtux, angel95 and rexy
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
SED="/bin/sed -i"
7
SED="/bin/sed -i"
Line 98... Line 98...
98
[ -e /etc/dansguardian/lists/bannedsitelist.default ] && mv /etc/dansguardian/lists/bannedsitelist.default /etc/dansguardian/lists/bannedsitelist && echo -n "9, "
98
[ -e /etc/dansguardian/lists/bannedsitelist.default ] && mv /etc/dansguardian/lists/bannedsitelist.default /etc/dansguardian/lists/bannedsitelist && echo -n "9, "
99
[ -d /etc/dansguardian/lists/blacklists.default ] && mv -f /etc/dansguardian/lists/blacklists.default /etc/dansguardian/lists/blacklists && echo -n "10"
99
[ -d /etc/dansguardian/lists/blacklists.default ] && mv -f /etc/dansguardian/lists/blacklists.default /etc/dansguardian/lists/blacklists && echo -n "10"
100
sleep 1
100
sleep 1
101
#antivirus
101
#antivirus
102
echo -en "\n-11 antivirus(5) : "
102
echo -en "\n-11 antivirus(5) : "
103
if [ -e /etc/init.d/havp ]
103
if [ `mount|grep 'havp-disk'|wc -l` -eq "1" ]
104
then
104
then
105
	umount /var/tmp/havp && echo -n "1, "
105
	umount /var/tmp/havp && echo -n "1, "
106
	sleep 1
106
	sleep 1
107
	rm -rf /var/tmp/havp && echo -n "2, "
107
	rm -rf /var/tmp/havp && echo -n "2, "
108
	rm -f /tmp/havp-disk && echo -n "3, "
108
	rm -f /tmp/havp-disk && echo -n "3, "
109
	$SED "/^# Entry for havp/d" /etc/fstab
109
	$SED "/^# Entry for havp/d" /etc/fstab
110
	$SED "/^\/tmp\/havp-disk/d" /etc/fstab && echo -n "4, "
110
	$SED "/^\/tmp\/havp-disk/d" /etc/fstab && echo -n "4, "
111
	[ -e /etc/havp/havp.conf.default ] && mv /etc/havp/havp.conf.default /etc/havp/havp.conf && echo -n "5"
111
	[ -e /etc/havp/havp.config.default ] && mv /etc/havp/havp.config.default /etc/havp/havp.config && echo -n "5"
112
	if [ -e /usr/local/sbin/havp ] # on traite la version 1.9a
112
	if [ -e /usr/local/sbin/havp ] # on traite la version 1.9a
113
	then
113
	then
114
		rm -rf /usr/local/etc/havp
114
		rm -rf /usr/local/etc/havp
115
		rm -rf /usr/local/sbin/havp
115
		rm -rf /usr/local/sbin/havp
116
		userdel -r havp
116
		userdel -r havp