Subversion Repositories ALCASAR

Rev

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

Rev 1693 Rev 1739
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-bypass.sh 1693 2015-09-08 07:36:09Z franck $
2
# $Id: alcasar-bypass.sh 1739 2016-01-03 12:51:37Z 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 30... Line 30...
30
		/usr/bin/systemctl stop chilli
30
		/usr/bin/systemctl stop chilli
31
		cp -f /etc/sysconfig/network-scripts/bypass-ifcfg-$INTIF /etc/sysconfig/network-scripts/ifcfg-$INTIF
31
		cp -f /etc/sysconfig/network-scripts/bypass-ifcfg-$INTIF /etc/sysconfig/network-scripts/ifcfg-$INTIF
32
		ifup $INTIF
32
		ifup $INTIF
33
		sh /usr/local/bin/alcasar-iptables-bypass.sh
33
		sh /usr/local/bin/alcasar-iptables-bypass.sh
34
		DHCP=`grep ^DHCP= $CONF_FILE|cut -d"=" -f2`
34
		DHCP=`grep ^DHCP= $CONF_FILE|cut -d"=" -f2`
35
		if  [ DHCP != off ] 
35
		if  [ $DHCP != off ] 
36
		then 
36
		then 
37
			$SED "s?^#route.*?&?g" /etc/dnsmasq.conf # dnsmasq become the DHCP server
37
			$SED "s?^#route.*?&?g" /etc/dnsmasq.conf # dnsmasq become the DHCP server
38
			$SED "s?^no-dhcp-interface.*?#&?g" /etc/dnsmasq.conf # 	
38
			$SED "s?^no-dhcp-interface.*?#&?g" /etc/dnsmasq.conf # 	
39
			/usr/bin/systemctl restart dnsmasq
39
			/usr/bin/systemctl restart dnsmasq
40
		fi
40
		fi