CLOUDSTACK-2044: Use dnsmasq.conf.tmpl to generate dnsmasq.conf

We add something like dhcp-range_ip4/ip6 in the template for implementing
different setups.
This commit is contained in:
Sheng Yang 2013-05-02 19:58:39 -07:00 committed by Chip Childers
parent 4640fbf36d
commit 7686489c13
2 changed files with 3 additions and 0 deletions

View File

@ -440,6 +440,9 @@ setup_dnsmasq() {
[ -z $DHCP_RANGE ] && [ $ETH0_IP ] && DHCP_RANGE=$ETH0_IP
[ $ETH0_IP6 ] && DHCP_RANGE_IP6=$ETH0_IP6
[ -z $DOMAIN ] && DOMAIN="cloudnine.internal"
#get the template
cp /etc/dnsmasq.conf.tmpl /etc/dnsmasq.conf
if [ -n "$DOMAIN" ]
then