Line 1... |
Line 1... |
1 |
#/bin/bash
|
1 |
#/bin/bash
|
2 |
# $Id: alcasar-conf.sh 994 2012-11-18 17:13:24Z franck $
|
2 |
# $Id: alcasar-conf.sh 1015 2013-01-27 22:43:29Z richard $
|
3 |
|
3 |
|
4 |
# alcasar-conf.sh
|
4 |
# alcasar-conf.sh
|
5 |
# by REXY
|
5 |
# by 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 |
|
7 |
|
Line 190... |
Line 190... |
190 |
# le paramêtre 'EXT_LAN_FILTERING' n'existe plus
|
190 |
# le paramêtre 'EXT_LAN_FILTERING' n'existe plus
|
191 |
$SED "/^EXT_LAN/d" $CONF_FILE
|
191 |
$SED "/^EXT_LAN/d" $CONF_FILE
|
192 |
# la catégorie de sites filtrés "ip" n'existe plus
|
192 |
# la catégorie de sites filtrés "ip" n'existe plus
|
193 |
$SED "/\/ip\/urls/d" $DIR_UPDATE/bannedurllist; $SED "/\/ip\/domains/d" $DIR_UPDATE/bannedsitelist
|
193 |
$SED "/\/ip\/urls/d" $DIR_UPDATE/bannedurllist; $SED "/\/ip\/domains/d" $DIR_UPDATE/bannedsitelist
|
194 |
$SED "/blacklists\/ip/d" $DIR_UPDATE/etc/alcasar-bl-categories; $SED "/^ip/d" $DIR_UPDATE/etc/alcasar-bl-categories-enabled
|
194 |
$SED "/blacklists\/ip/d" $DIR_UPDATE/etc/alcasar-bl-categories; $SED "/^ip/d" $DIR_UPDATE/etc/alcasar-bl-categories-enabled
|
- |
|
195 |
# les bl et wl de dnsmasq sont reconstruites dynamiquement dans /usr/local/share
|
- |
|
196 |
rm -rf $DIR_UPDATE/etc/alcasar-dnsfilter-enabled $DIR_UPDATE/etc/alcasar-dnsfilter-available
|
195 |
# bing et Youtube sont ajoutés au safesearching
|
197 |
# bing et Youtube sont ajoutés au safesearching
|
196 |
Bing=`grep bing $DIR_UPDATE/urlregexplist | wc -l`
|
198 |
Bing=`grep bing $DIR_UPDATE/urlregexplist | wc -l`
|
197 |
if [ $Bing -ne "1" ]; then
|
199 |
if [ $Bing -ne "1" ]; then
|
198 |
SafeSearch=`grep ^\"\(\^http\:\/\/ $DIR_UPDATE/urlregexplist | wc -l`
|
200 |
SafeSearch=`grep ^\"\(\^http\:\/\/ $DIR_UPDATE/urlregexplist | wc -l`
|
199 |
if [ $SafeSearch -eq "0" ]; then
|
201 |
if [ $SafeSearch -eq "0" ]; then
|