Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-conf.sh 2541 2018-05-03 22:16:31Z rexy $
|
2 |
# $Id: alcasar-conf.sh 2546 2018-05-06 01:26:25Z tom.houdayer $
|
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 355... |
Line 355... |
355 |
$SED "s/$/\/$DNS1/" /tmp/tmp_file
|
355 |
$SED "s/$/\/$DNS1/" /tmp/tmp_file
|
356 |
mv -f /tmp/tmp_file $DIR_SHARE/dnsmasq-wl/$i
|
356 |
mv -f /tmp/tmp_file $DIR_SHARE/dnsmasq-wl/$i
|
357 |
done
|
357 |
done
|
358 |
chown root:apache $DIR_SHARE/dnsmasq-wl/*
|
358 |
chown root:apache $DIR_SHARE/dnsmasq-wl/*
|
359 |
chmod 660 $DIR_SHARE/dnsmasq-wl/*
|
359 |
chmod 660 $DIR_SHARE/dnsmasq-wl/*
|
- |
|
360 |
$SED "s@^\([#]\?\)dhcp-range=.*@\1dhcp-range=$PRIVATE_SECOND_IP,$PRIVATE_LAST_IP,$PRIVATE_NETMASK,12h@" /etc/dnsmasq.conf
|
360 |
$SED "s?^dhcp-option=option:router.*?dhcp-option=option:router,$PRIVATE_IP?g" /etc/dnsmasq.conf
|
361 |
$SED "s@^\([#]\?\)dhcp-option=option:router.*@\1dhcp-option=option:router,$PRIVATE_IP@" /etc/dnsmasq.conf
|
361 |
$SED "s?^dhcp-range=.*?dhcp-range=$PRIVATE_SECOND_IP,$PRIVATE_LAST_IP,$PRIVATE_NETMASK,12h?g" /etc/dnsmasq.conf
|
362 |
$SED "s@^\([#]\?\)dhcp-option=option:ntp-server.*@\1dhcp-option=option:ntp-server,$PRIVATE_IP@" /etc/dnsmasq.conf
|
362 |
# tinyproxy
|
363 |
# tinyproxy
|
363 |
$SED "s?^Listen.*?Listen $PRIVATE_IP?g" /etc/tinyproxy/tinyproxy.conf
|
364 |
$SED "s?^Listen.*?Listen $PRIVATE_IP?g" /etc/tinyproxy/tinyproxy.conf
|
364 |
# DG + BL
|
365 |
# DG + BL
|
365 |
$SED "s?^filterip.*?filterip = $PRIVATE_IP?g" /etc/e2guardian/e2guardian.conf
|
366 |
$SED "s?^filterip.*?filterip = $PRIVATE_IP?g" /etc/e2guardian/e2guardian.conf
|
366 |
# Watchdog
|
367 |
# Watchdog
|