Subversion Repositories ALCASAR

Rev

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

Rev 1057 Rev 1059
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
 
2
 
3
# $Id: alcasar-bl.sh 1057 2013-03-27 22:05:36Z richard $
3
# $Id: alcasar-bl.sh 1059 2013-03-27 22:20:10Z richard $
4
 
4
 
5
# alcasar-bl.sh
5
# alcasar-bl.sh
6
# by Franck BOUIJOUX and Richard REY
6
# by Franck BOUIJOUX and Richard REY
7
# This script is distributed under the Gnu General Public License (GPL)
7
# This script is distributed under the Gnu General Public License (GPL)
8
 
8
 
Line 78... Line 78...
78
		service dansguardian restart
78
		service dansguardian restart
79
		service dnsmasq restart
79
		service dnsmasq restart
80
		/usr/local/bin/alcasar-iptables.sh
80
		/usr/local/bin/alcasar-iptables.sh
81
	fi
81
	fi
82
}
82
}
83
usage="Usage: alcasar-bl.sh {-on or --on} | { -off or --off } | { -download or --download } | { -reload or --reload }"
83
usage="Usage: alcasar-bl.sh { -on or --on } | { -off or --off } | { -download or --download } | { -adapt or --adapt } | { -reload or --reload }"
84
nb_args=$#
84
nb_args=$#
85
args=$1
85
args=$1
86
if [ $nb_args -eq 0 ]
86
if [ $nb_args -eq 0 ]
87
then
87
then
88
	DNS_FILTERING=`grep DNS_FILTERING $CONF_FILE|cut -d"=" -f2`		# DNS and URLs filter (on/off)
88
	DNS_FILTERING=`grep DNS_FILTERING $CONF_FILE|cut -d"=" -f2`		# DNS and URLs filter (on/off)