Subversion Repositories ALCASAR

Rev

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

Rev 1590 Rev 1611
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-conf.sh 1590 2015-03-09 21:41:03Z richard $
2
# $Id: alcasar-conf.sh 1611 2015-04-06 16:22:18Z franck $
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 206... Line 206...
206
		private_network_calc
206
		private_network_calc
207
		INSTALL_DATE=`grep INSTALL_DATE $CONF_FILE|cut -d"=" -f2`
207
		INSTALL_DATE=`grep INSTALL_DATE $CONF_FILE|cut -d"=" -f2`
208
		ORGANISME=`grep ORGANISM $CONF_FILE|cut -d"=" -f2`
208
		ORGANISME=`grep ORGANISM $CONF_FILE|cut -d"=" -f2`
209
 		DOMAIN=`grep DOMAIN $CONF_FILE|cut -d"=" -f2`
209
 		DOMAIN=`grep DOMAIN $CONF_FILE|cut -d"=" -f2`
210
		DHCP_mode=`grep DHCP= $CONF_FILE|cut -d"=" -f2`
210
		DHCP_mode=`grep DHCP= $CONF_FILE|cut -d"=" -f2`
-
 
211
		INT_DNS_active=`grep INT_DNS_ACTIVE= $CONF_FILE|cut -d"=" -f2`
211
		if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't launch on install stage
212
		if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't launch on install stage
212
		then
213
		then
213
			if [ $DHCP_mode = "off" ]
214
			if [ $DHCP_mode = "off" ]
214
			then
215
			then
215
				$DIR_SBIN/alcasar-dhcp.sh --off
216
				$DIR_SBIN/alcasar-dhcp.sh --off
216
			fi
217
			fi
-
 
218
			$DIR_SBIN/alcasar-dns-local.sh --$INT_DNS_active
-
 
219
 
217
# Logout everybody
220
# Logout everybody
218
			$DIR_SBIN/alcasar-logout.sh all		
221
			$DIR_SBIN/alcasar-logout.sh all		
219
# Services stop
222
# Services stop
220
			echo -n "Stop services : "
223
			echo -n "Stop services : "
221
			for i in ntpd httpd tinyproxy dnsmasq dnsmasq-whitelist dnsmasq-blacklist chilli network 
224
			for i in ntpd httpd tinyproxy dnsmasq dnsmasq-whitelist dnsmasq-blacklist chilli network