Subversion Repositories ALCASAR

Rev

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

Rev 1269 Rev 1377
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-conf.sh 1269 2013-12-16 23:13:20Z richard $
2
# $Id: alcasar-conf.sh 1377 2014-06-10 22:16:50Z 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
# dhcp (coova + dnsmasq)
304
# dhcp (coova + dnsmasq)
305
		$DIR_SBIN/alcasar-dhcp.sh -$DHCP_mode
305
		$DIR_SBIN/alcasar-dhcp.sh -$DHCP_mode
306
# dnsmasq
306
# dnsmasq
307
		$SED "/127.0.0.1/!s?^listen-address=.*?listen-address=$PRIVATE_IP?g" /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
307
		$SED "/127.0.0.1/!s?^listen-address=.*?listen-address=$PRIVATE_IP?g" /etc/dnsmasq.conf /etc/dnsmasq-blacklist.conf
308
		for i in /etc/dnsmasq.conf /etc/dnsmasq-blackhole.conf
308
		for i in /etc/dnsmasq.conf /etc/dnsmasq-blacklist.conf
309
		do
309
		do
310
			$SED "/^server=/d" $i
310
			$SED "/^server=/d" $i
311
			echo "server=$DNS1" >> $i
311
			echo "server=$DNS1" >> $i
312
			echo "server=$DNS2" >> $i
312
			echo "server=$DNS2" >> $i
313
		done
313
		done