Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 308 → Rev 309

/scripts/alcasar-watchdog.sh
38,8 → 38,7
net_pb=`cat /etc/dnsmasq.d/alcasar-dnsmasq.conf|grep "address=/#/"|wc -l`
if [ $net_pb != "1" ]
then
rm -f /var/www/html/redirect/index.php
ln -s /var/www/html/redirect/index-network-pb.php /var/www/html/redirect/index.php
ln -sf /var/www/html/redirect/index-network-pb.php /var/www/html/redirect/index.php
/bin/sed -i "s?^conf-dir=.*?address=\/#\/$PRIVATE_IP?g" /etc/dnsmasq.d/alcasar-dnsmasq.conf
/etc/init.d/dnsmasq restart
fi
73,6 → 72,7
net_pb=`cat /etc/dnsmasq.d/alcasar-dnsmasq.conf|grep "address=/#/"|wc -l`
if [ $net_pb -eq "1" ]
then
ln -sf /var/www/html/redirect/index-access-deny.php /var/www/html/redirect/index.php
/bin/sed -i "s?^address=\/#\/.*?conf-dir=/usr/local/etc/alcasar-dnsfilter-enabled?g" /etc/dnsmasq.d/alcasar-dnsmasq.conf
/etc/init.d/dnsmasq restart
fi