Subversion Repositories ALCASAR

Rev

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

Rev 1739 Rev 1827
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-bypass.sh 1739 2016-01-03 12:51:37Z richard $
2
# $Id: alcasar-bypass.sh 1827 2016-04-19 09:47:29Z raphael.pion $
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 24... Line 24...
24
	-\? | -h* | --h*)
24
	-\? | -h* | --h*)
25
		echo "$usage"
25
		echo "$usage"
26
		exit 0
26
		exit 0
27
		;;
27
		;;
28
	--on | -on)	
28
	--on | -on)	
29
		/usr/local/sbin/alcasar-logout.sh all
29
		/usr/local/bin/alcasar-logout.sh all
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`