Subversion Repositories ALCASAR

Rev

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

Rev 2864 Rev 2867
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 2864 2020-10-18 09:06:17Z rexy $
2
# $Id: alcasar-uninstall.sh 2867 2020-10-24 14:33:04Z rexy $
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 199... Line 199...
199
	for filter in `ls /etc/fail2ban/filter.d/alcasar_* 2>/dev/null`
199
	for filter in `ls /etc/fail2ban/filter.d/alcasar_* 2>/dev/null`
200
	do
200
	do
201
		i=`expr $i + 1`
201
		i=`expr $i + 1`
202
		rm $filter && echo -n "$i, "
202
		rm $filter && echo -n "$i, "
203
	done
203
	done
-
 
204
	for jail in `ls /etc/fail2ban/jail.d/*alcasar_* 2>/dev/null`
-
 
205
	do
-
 
206
		i=`expr $i + 1`
-
 
207
		rm $jail && echo -n "$i, "
-
 
208
	done
204
	[ -e /lib/systemd/system/fail2ban.service.default ] && mv /lib/systemd/system/fail2ban.service.default /lib/systemd/system/fail2ban.service && echo -n "6"
209
	[ -e /lib/systemd/system/fail2ban.service.default ] && mv /lib/systemd/system/fail2ban.service.default /lib/systemd/system/fail2ban.service && echo -n "11"
205
}
210
}
206
 
211
 
207
gammu_smsd ()
212
gammu_smsd ()
208
{
213
{
209
	echo -en "(3) : "
214
	echo -en "(3) : "