Subversion Repositories ALCASAR

Rev

Rev 386 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 386 Rev 412
Line 1... Line 1...
1
#/bin/sh
1
#/bin/sh
2
# $Id: alcasar-bl.sh 386 2010-12-29 22:04:40Z franck $
2
# $Id: alcasar-bl.sh 412 2011-01-03 21:40:09Z richard $
3
 
3
 
4
# Script de gestion de la BL pour le filtrage de domaine (via dnsmasq) et d'URL (via dansguardian)
4
# Script de gestion de la BL pour le filtrage de domaine (via dnsmasq) et d'URL (via dansguardian)
5
# By 3abtux & rexy
5
# By 3abtux & rexy
6
 
6
 
7
DIR_tmp="/tmp/blacklists"
7
DIR_tmp="/tmp/blacklists"
Line 99... Line 99...
99
		service dansguardian restart
99
		service dansguardian restart
100
		service dnsmasq restart
100
		service dnsmasq restart
101
		fi
101
		fi
102
		;;
102
		;;
103
	# désactivation du filtrage
103
	# désactivation du filtrage
104
	-off | -off)
104
	-off | --off)
105
		rm -rf $DIR_DNS_FILTER_ENABLED/*
105
		rm -rf $DIR_DNS_FILTER_ENABLED/*
106
		$SED "s/^reportinglevel =.*/reportinglevel = -1/g" /etc/dansguardian/dansguardian.conf
106
		$SED "s/^reportinglevel =.*/reportinglevel = -1/g" /etc/dansguardian/dansguardian.conf
107
		if [ "$PARENT_SCRIPT" != "/usr/local/bin/alcasar-conf.sh" ] # on ne relance pas les processus lors d'une install
107
		if [ "$PARENT_SCRIPT" != "/usr/local/bin/alcasar-conf.sh" ] # on ne relance pas les processus lors d'une install
108
		then
108
		then
109
		service dansguardian restart
109
		service dansguardian restart