Subversion Repositories ALCASAR

Rev

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

Rev 1888 Rev 1889
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-bypass.sh 1888 2016-05-12 21:53:44Z richard $
2
# $Id: alcasar-bypass.sh 1889 2016-05-12 21:58:54Z richard $
3
 
3
 
4
# alcasar-bypass.sh
4
# alcasar-bypass.sh
5
# by 3abtux and Rexy
5
# by 3abtux and 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 46... Line 46...
46
		;;
46
		;;
47
	--off | -off)
47
	--off | -off)
48
		cp -f /etc/sysconfig/network-scripts/default-ifcfg-$INTIF /etc/sysconfig/network-scripts/ifcfg-$INTIF
48
		cp -f /etc/sysconfig/network-scripts/default-ifcfg-$INTIF /etc/sysconfig/network-scripts/ifcfg-$INTIF
49
		ifup $INTIF
49
		ifup $INTIF
50
		$SED "s?^dhcp-range.*?#&?g" /etc/dnsmasq.conf # dnsmasq is no more the DHCP server (it's coova) 
50
		$SED "s?^dhcp-range.*?#&?g" /etc/dnsmasq.conf # dnsmasq is no more the DHCP server (it's coova) 
51
		$SED "s?^dhcp-option.*?#&?g" /etc/dnsmasq.conf # dnsmasq is no more the DHCP server (it's coova) 
51
		$SED "s?^dhcp-option.*?#&?g" /etc/dnsmasq.conf
52
		$SED "/#no-dhcp-interface/s/^#//" /etc/dnsmasq.conf
52
		$SED "/^#no-dhcp-interface/s/^#//" /etc/dnsmasq.conf
53
		/usr/bin/systemctl restart dnsmasq
53
		/usr/bin/systemctl restart dnsmasq
54
		/usr/bin/systemctl start chilli
54
		/usr/bin/systemctl start chilli
55
		sh /usr/local/bin/alcasar-iptables.sh
55
		sh /usr/local/bin/alcasar-iptables.sh
56
		# activation of the "daemon-watchdog" every 18'
56
		# activation of the "daemon-watchdog" every 18'
57
		cat << EOF > /etc/cron.d/alcasar-daemon-watchdog
57
		cat << EOF > /etc/cron.d/alcasar-daemon-watchdog