CS-15635 : fixed the part introduced by VPC, there is anther part needs to be fixed for regular network

This commit is contained in:
anthony 2012-07-23 16:09:59 -07:00
parent 22826032b4
commit 5e3e3a7a1c
1 changed files with 0 additions and 12 deletions

View File

@ -78,18 +78,6 @@ setup_dnsmasq() {
# setup static
sed -i -e "/^[#]*dhcp-range=interface:$dev/d" /etc/dnsmasq.d/cloud.conf
echo "dhcp-range=interface:$dev,set:interface-$dev,$ip,static" >> /etc/dnsmasq.d/cloud.conf
# setup gateway
sed -i -e "/^[#]*dhcp-option=tag:interface-$dev,option:router.*$/d" /etc/dnsmasq.d/cloud.conf
if [ -n "$gw" ]
then
echo "dhcp-option=tag:interface-$dev,option:router,$gw" >> /etc/dnsmasq.d/cloud.conf
fi
# setup DNS
sed -i -e "/^[#]*dhcp-option=tag:interface-$dev,6.*$/d" /etc/dnsmasq.d/cloud.conf
if [ -n "$gw" ]
then
echo "dhcp-option=tag:interface-$dev,6,$gw" >> /etc/dnsmasq.d/cloud.conf
fi
# setup DOMAIN
[ -z $DOMAIN ] && DOMAIN="cloudnine.internal"