Subversion Repositories ALCASAR

Rev

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

Rev 1065 Rev 1154
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-conf.sh 1065 2013-04-06 08:50:26Z richard $
2
# $Id: alcasar-conf.sh 1154 2013-07-15 14:27:10Z crox53 $
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 384... Line 384...
384
		$SED "s?^dns2.*?dns2\t\t$PRIVATE_IP?g" /etc/chilli.conf
384
		$SED "s?^dns2.*?dns2\t\t$PRIVATE_IP?g" /etc/chilli.conf
385
		$SED "s?^uamlisten.*?uamlisten\t$PRIVATE_IP?g" /etc/chilli.conf
385
		$SED "s?^uamlisten.*?uamlisten\t$PRIVATE_IP?g" /etc/chilli.conf
386
		$SED "s?^\$organisme = .*?\$organisme = \"$ORGANISME\";?g" /var/www/html/intercept.php /var/www/html/status.php
386
		$SED "s?^\$organisme = .*?\$organisme = \"$ORGANISME\";?g" /var/www/html/intercept.php /var/www/html/status.php
387
# dhcp (coova + dnsmasq)
387
# dhcp (coova + dnsmasq)
388
		$DIR_SBIN/alcasar-dhcp.sh -$DHCP_mode
388
		$DIR_SBIN/alcasar-dhcp.sh -$DHCP_mode
389
# awstat
-
 
390
		$SED "s?^HostAliases=.*?HostAliases=\"$PRIVATE_IP\"?g" /etc/awstats/awstats.conf
-
 
391
# dnsmasq
389
# dnsmasq
392
		$SED "/127.0.0.1/!s?^listen-address=.*?listen-address=$PRIVATE_IP?g" /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
390
		$SED "/127.0.0.1/!s?^listen-address=.*?listen-address=$PRIVATE_IP?g" /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
393
		for i in /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
391
		for i in /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
394
		do
392
		do
395
			$SED "/^server=/d" $i
393
			$SED "/^server=/d" $i