Subversion Repositories ALCASAR

Rev

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

Rev 990 Rev 1040
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
# $Id: alcasar-dhcp.sh 990 2012-08-24 22:47:27Z franck $
2
# $Id: alcasar-dhcp.sh 1040 2013-03-09 08:18:15Z franck $
3
 
3
 
4
# alcasar-dhcp.sh
4
# alcasar-dhcp.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 63... Line 63...
63
		$SED "s?.*statip.*?statip\t\t$PRIVATE_NETWORK_MASK?g" $CHILLI_CONF_FILE
63
		$SED "s?.*statip.*?statip\t\t$PRIVATE_NETWORK_MASK?g" $CHILLI_CONF_FILE
64
		$SED "s?^#nodynip.*?nodynip?g" $CHILLI_CONF_FILE
64
		$SED "s?^#nodynip.*?nodynip?g" $CHILLI_CONF_FILE
65
		$SED "s?^dynip.*?#dynip?g" $CHILLI_CONF_FILE
65
		$SED "s?^dynip.*?#dynip?g" $CHILLI_CONF_FILE
66
		$SED "s?^#dynip.*?#dynip?g" $CHILLI_CONF_FILE
66
		$SED "s?^#dynip.*?#dynip?g" $CHILLI_CONF_FILE
67
		$SED "s?^DHCP.*?DHCP=off?g" $ALCASAR_CONF_FILE
67
		$SED "s?^DHCP.*?DHCP=off?g" $ALCASAR_CONF_FILE
68
		if [ $EXT_DHCP_IP != "none" ] 
68
		if [ "$EXT_DHCP_IP" != "none" ] 
69
		then
69
		then
70
		      $SED "s?.*dhcpgateway .*?dhcpgateway \t\t$EXT_DHCP_IP?g" $CHILLI_CONF_FILE
70
		      $SED "s?.*dhcpgateway .*?dhcpgateway \t\t$EXT_DHCP_IP?g" $CHILLI_CONF_FILE
71
		      $SED "s?.*dhcprelayagent.*?dhcprelayagent\t\t$RELAY_DHCP_IP?g" $CHILLI_CONF_FILE
71
		      $SED "s?.*dhcprelayagent.*?dhcprelayagent\t\t$RELAY_DHCP_IP?g" $CHILLI_CONF_FILE
72
		      $SED "s?.*dhcpgatewayport.*?#dhcpgatewayport\t\t$RELAY_DHCP_PORT?g" $CHILLI_CONF_FILE
72
		      $SED "s?.*dhcpgatewayport.*?#dhcpgatewayport\t\t$RELAY_DHCP_PORT?g" $CHILLI_CONF_FILE
73
		fi
73
		fi