Subversion Repositories ALCASAR

Rev

Rev 1391 | Rev 1394 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 1391 Rev 1393
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 1391 2014-06-17 17:17:42Z richard $
2
# $Id: alcasar-uninstall.sh 1393 2014-06-19 08:44:51Z richard $
3
 
3
 
4
# alcasar-uninstall.sh
4
# alcasar-uninstall.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
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
 
7
 
Line 105... Line 105...
105
[ -e /etc/dansguardian/lists/exceptioniplist.default ] && mv /etc/dansguardian/lists/exceptioniplist.default /etc/dansguardian/lists/exceptioniplist && echo -n "7, "
105
[ -e /etc/dansguardian/lists/exceptioniplist.default ] && mv /etc/dansguardian/lists/exceptioniplist.default /etc/dansguardian/lists/exceptioniplist && echo -n "7, "
106
[ -e /etc/dansguardian/lists/bannedsitelist.default ] && mv /etc/dansguardian/lists/bannedsitelist.default /etc/dansguardian/lists/bannedsitelist && echo -n "8"
106
[ -e /etc/dansguardian/lists/bannedsitelist.default ] && mv /etc/dansguardian/lists/bannedsitelist.default /etc/dansguardian/lists/bannedsitelist && echo -n "8"
107
sleep 1
107
sleep 1
108
 
108
 
109
#antivirus
109
#antivirus
110
echo -en "\n- antivirus(4) : "
110
echo -en "\n- antivirus(6) : "
111
if [ -e /etc/init.d/havp ] 
111
if [ -e /etc/init.d/havp ] 
112
	then
112
	then
113
	[ -e /etc/havp/havp.config.default ] && mv /etc/havp/havp.config.default /etc/havp/havp.config && echo -n "1, "
113
	[ -e /etc/havp/havp.config.default ] && mv /etc/havp/havp.config.default /etc/havp/havp.config && echo -n "1, "
-
 
114
	[ -e /etc/havp/havp2.config ] && rm -f /etc/havp/havp2.config && echo -n "2, "
114
	userdel -r havp 2>/dev/null && echo -n "2, "
115
	userdel -r havp 2>/dev/null && echo -n "3, "
115
	[ `grep havp /etc/fstab|wc -l` -ne "0" ] && $SED "/havp/d" /etc/fstab # anciennes versions (mémoire tampon sur disque)
116
	[ `grep havp /etc/fstab|wc -l` -ne "0" ] && $SED "/havp/d" /etc/fstab # anciennes versions (mémoire tampon sur disque)
116
	[ -e /etc/init.d/havp.default ] && mv /etc/init.d/havp.default /etc/init.d/havp && echo -n "3, "
117
	[ -e /etc/init.d/havp.default ] && mv /etc/init.d/havp.default /etc/init.d/havp && echo -n "4, "
-
 
118
	[ -e /etc/init.d/havp2 ] && rm -f /etc/init.d/havp2 && echo -n "5, "
117
	[ -e /etc/freshclam.conf.default ] && mv /etc/freshclam.conf.default /etc/freshclam.conf && echo -n "4"
119
	[ -e /etc/freshclam.conf.default ] && mv /etc/freshclam.conf.default /etc/freshclam.conf && echo -n "6"
118
else	echo -n "uninstalled"
120
else	echo -n "uninstalled"
119
fi
121
fi
120
sleep 1
122
sleep 1
121
 
123
 
122
#param_ulogd
124
#param_ulogd
Line 125... Line 127...
125
for log_type in traceability ssh ext-access
127
for log_type in traceability ssh ext-access
126
      do
128
      do
127
      i=`expr $i + 1`
129
      i=`expr $i + 1`
128
      [ -e /etc/ulogd-$log_type.conf ] && rm -f /etc/ulogd-$log_type.conf && echo -n "$i, "
130
      [ -e /etc/ulogd-$log_type.conf ] && rm -f /etc/ulogd-$log_type.conf && echo -n "$i, "
129
      i=`expr $i + 1`
131
      i=`expr $i + 1`
130
      [ -e /lib/systemd/system/ulogd-$log_type.service ] && rm -f /lib/systemd/system/ulogd-$log_type.service && echo -n "$i"
132
      [ -e /lib/systemd/system/ulogd-$log_type.service ] && rm -f /lib/systemd/system/ulogd-$log_type.service && echo -n "$i, "
131
      done
133
      done
132
sleep 1
134
sleep 1
133
 
135
 
134
#nfsen
136
#nfsen
135
echo -en "\n- nfsen(2) : "
137
echo -en "\n- nfsen(2) : "
Line 155... Line 157...
155
fi
157
fi
156
sleep 1
158
sleep 1
157
 
159
 
158
#BL
160
#BL
159
echo -en "\n- BL(1) : "
161
echo -en "\n- BL(1) : "
160
[ -e /lib/systemd/system/iptables.service.default ] && mv /lib/systemd/system/iptables.service.default /lib/systemd/system/iptables.service && echo "1"
162
[ -e /lib/systemd/system/iptables.service.default ] && mv /lib/systemd/system/iptables.service.default /lib/systemd/system/iptables.service && echo -n "1"
161
sleep 1
163
sleep 1
162
 
164
 
163
#dhcpd
165
#dhcpd
164
echo -en "\n- dhcp-server(1) : "
166
echo -en "\n- dhcp-server(1) : "
165
if [ -e /etc/init.d/dhcpd ]
167
if [ -e /etc/init.d/dhcpd ]
Line 220... Line 222...
220
[ -e /etc/hosts.allow.default ] && mv /etc/hosts.allow.default /etc/hosts.allow && echo -n "6, "
222
[ -e /etc/hosts.allow.default ] && mv /etc/hosts.allow.default /etc/hosts.allow && echo -n "6, "
221
[ -e /etc/hosts.deny.default ] && mv /etc/hosts.deny.default /etc/hosts.deny && echo -n "7, "
223
[ -e /etc/hosts.deny.default ] && mv /etc/hosts.deny.default /etc/hosts.deny && echo -n "7, "
222
[ -e /etc/sysconfig/iptables ] && rm -f /etc/sysconfig/iptables && echo -n "8, "
224
[ -e /etc/sysconfig/iptables ] && rm -f /etc/sysconfig/iptables && echo -n "8, "
223
[ -e /etc/modprobe.preload.default ] && mv /etc/modprobe.preload.default /etc/modprobe.preload && echo -n "9"
225
[ -e /etc/modprobe.preload.default ] && mv /etc/modprobe.preload.default /etc/modprobe.preload && echo -n "9"
224
 
226
 
225
echo
-
 
226
/sbin/ifup $EXTIF
227
/sbin/ifup $EXTIF
227
sleep 1
228
sleep 1
228
 
229
 
229
#post_install
230
#post_install
230
echo -en "\n- post_install(12) : "
231
echo -en "\n- post_install(12) : "