| Line 1... |
Line 1... |
| 1 |
#/bin/bash
|
1 |
#/bin/bash
|
| 2 |
# $Id: alcasar-conf.sh 1252 2013-10-27 13:27:01Z richard $
|
2 |
# $Id: alcasar-conf.sh 1267 2013-12-15 21:48:12Z 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 302... |
Line 302... |
| 302 |
$SED "s?^dns2.*?dns2\t\t$PRIVATE_IP?g" /etc/chilli.conf
|
302 |
$SED "s?^dns2.*?dns2\t\t$PRIVATE_IP?g" /etc/chilli.conf
|
| 303 |
$SED "s?^uamlisten.*?uamlisten\t$PRIVATE_IP?g" /etc/chilli.conf
|
303 |
$SED "s?^uamlisten.*?uamlisten\t$PRIVATE_IP?g" /etc/chilli.conf
|
| 304 |
$SED "s?^\$organisme = .*?\$organisme = \"$ORGANISME\";?g" /var/www/html/intercept.php /var/www/html/status.php
|
304 |
$SED "s?^\$organisme = .*?\$organisme = \"$ORGANISME\";?g" /var/www/html/intercept.php /var/www/html/status.php
|
| 305 |
# dhcp (coova + dnsmasq)
|
305 |
# dhcp (coova + dnsmasq)
|
| 306 |
$DIR_SBIN/alcasar-dhcp.sh -$DHCP_mode
|
306 |
$DIR_SBIN/alcasar-dhcp.sh -$DHCP_mode
|
| 307 |
# awstat
|
- |
|
| 308 |
$SED "s?^HostAliases=.*?HostAliases=\"$PRIVATE_IP\"?g" /etc/awstats/awstats.conf
|
- |
|
| 309 |
# dnsmasq
|
307 |
# dnsmasq
|
| 310 |
$SED "/127.0.0.1/!s?^listen-address=.*?listen-address=$PRIVATE_IP?g" /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
|
308 |
$SED "/127.0.0.1/!s?^listen-address=.*?listen-address=$PRIVATE_IP?g" /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
|
| 311 |
for i in /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
|
309 |
for i in /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
|
| 312 |
do
|
310 |
do
|
| 313 |
$SED "/^server=/d" $i
|
311 |
$SED "/^server=/d" $i
|