From 6baa0538a852f59d17f9b2372ec6ae96381e4b3d Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Wed, 12 Mar 2014 18:14:05 -0700 Subject: [PATCH] CLOUDSTACK-5986: Fix dnsmasq lease judgement --- patches/systemvm/debian/config/root/edithosts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/systemvm/debian/config/root/edithosts.sh b/patches/systemvm/debian/config/root/edithosts.sh index 8e7ddac8fd8..d6ff983ad18 100755 --- a/patches/systemvm/debian/config/root/edithosts.sh +++ b/patches/systemvm/debian/config/root/edithosts.sh @@ -95,7 +95,7 @@ wait_for_dnsmasq () { return 1 } -if [ $dnsmasq_managed_lease ] +if [ $dnsmasq_managed_lease -eq 1 ] then #release previous dhcp lease if present logger -t cloud "edithosts: releasing $ipv4" @@ -212,7 +212,7 @@ pid=$(pidof dnsmasq) if [ "$pid" != "" ] then # use SIGHUP to avoid service outage if dhcp_release is available. - if [ $dnsmasq_managed_lease ] + if [ $dnsmasq_managed_lease -eq 1 ] then kill -HUP $pid else