| Line 1... |
Line 1... |
| 1 |
#/bin/bash
|
1 |
#/bin/bash
|
| 2 |
# $Id: alcasar-conf.sh 1154 2013-07-15 14:27:10Z crox53 $
|
2 |
# $Id: alcasar-conf.sh 1157 2013-07-16 10:48:11Z stephane $
|
| 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
|
| 389 |
# dnsmasq
|
391 |
# dnsmasq
|
| 390 |
$SED "/127.0.0.1/!s?^listen-address=.*?listen-address=$PRIVATE_IP?g" /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
|
392 |
$SED "/127.0.0.1/!s?^listen-address=.*?listen-address=$PRIVATE_IP?g" /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
|
| 391 |
for i in /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
|
393 |
for i in /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
|
| 392 |
do
|
394 |
do
|
| 393 |
$SED "/^server=/d" $i
|
395 |
$SED "/^server=/d" $i
|