Subversion Repositories ALCASAR

Rev

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

Rev 1760 Rev 1765
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-conf.sh 1760 2016-01-13 23:08:17Z richard $
2
# $Id: alcasar-conf.sh 1765 2016-01-16 09:42:24Z 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 231... Line 231...
231
 
231
 
232
# Logout everybody
232
# Logout everybody
233
			$DIR_SBIN/alcasar-logout.sh all		
233
			$DIR_SBIN/alcasar-logout.sh all		
234
# Services stop
234
# Services stop
235
			echo -n "Stop services : "
235
			echo -n "Stop services : "
236
			for i in ntpd httpd tinyproxy dnsmasq dnsmasq-whitelist dnsmasq-blacklist chilli network 
236
			for i in ntpd tinyproxy dnsmasq dnsmasq-whitelist dnsmasq-blacklist chilli network httpd
237
			do
237
			do
238
				/usr/bin/systemctl stop $i && echo -n "$i, "
238
				/usr/bin/systemctl stop $i && echo -n "$i, "
239
			done
239
			done
240
			echo
240
			echo
241
		fi
241
		fi
Line 328... Line 328...
328
		if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't launch on install stage
328
		if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't launch on install stage
329
		then
329
		then
330
# Services start
330
# Services start
331
			/usr/bin/systemctl start network && echo -n "Start service : network" && sleep 1
331
			/usr/bin/systemctl start network && echo -n "Start service : network" && sleep 1
332
			$DIR_SBIN/alcasar-dhcp.sh -$DHCP_mode && echo -n ", coova" # apply DHCP mode and start coova
332
			$DIR_SBIN/alcasar-dhcp.sh -$DHCP_mode && echo -n ", coova" # apply DHCP mode and start coova
333
			for i in dnsmasq httpd tinyproxy ntpd 
333
			for i in dnsmasq tinyproxy ntpd httpd
334
				do
334
				do
335
					sleep 1
335
					sleep 1
336
					/usr/bin/systemctl start $i && echo -n ", $i"
336
					/usr/bin/systemctl start $i && echo -n ", $i"
337
				done
337
				done
338
			$DIR_SBIN/alcasar-bl.sh -reload && echo ", dnsmasq-blacklist, dnsmasq-whitelist, iptables"
338
			$DIR_SBIN/alcasar-bl.sh -reload && echo ", dnsmasq-blacklist, dnsmasq-whitelist, iptables"