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
parent f8504c0960
commit 2510bf03f6
2 changed files with 3 additions and 0 deletions

View File

@ -442,6 +442,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