Subversion Repositories ALCASAR

Rev

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

Rev 2648 Rev 2649
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
 
2
 
3
# Id: $Id: alcasar-url_filter_bl.sh 2648 2018-11-02 22:33:33Z lucas.echard $
3
# Id: $Id: alcasar-url_filter_bl.sh 2649 2018-11-02 22:36:26Z lucas.echard $
4
 
4
 
5
# alcasar-url_filter.sh
5
# alcasar-url_filter.sh
6
# by REXY
6
# by REXY
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 96... Line 96...
96
		$SED "/youtube/d" $DNSMASQ_BL_CONF
96
		$SED "/youtube/d" $DNSMASQ_BL_CONF
97
	fi
97
	fi
98
	if [ $pureip == "On" ]
98
	if [ $pureip == "On" ]
99
	then
99
	then
100
		$SED "s/^\#\*ip$/*ip/g" $DIR_DG/bannedsitelist
100
		$SED "s/^\#\*ip$/*ip/g" $DIR_DG/bannedsitelist
-
 
101
		$SED "s/^\#\*ips$/*ips/g" $DIR_DG/bannedsitelist
101
	else
102
	else
102
		$SED "s/^\*ip$/#*ip/g" $DIR_DG/bannedsitelist
103
		$SED "s/^\*ip$/#*ip/g" $DIR_DG/bannedsitelist
-
 
104
		$SED "s/^\*ips$/#*ips/g" $DIR_DG/bannedsitelist
103
	fi
105
	fi
104
systemctl restart e2guardian
106
systemctl restart e2guardian
105
systemctl restart dnsmasq-blacklist
107
systemctl restart dnsmasq-blacklist
106
fi
108
fi