diff --git a/patches/systemvm/debian/config/root/edithosts.sh b/patches/systemvm/debian/config/root/edithosts.sh index 513571e69d3..2d995861177 100755 --- a/patches/systemvm/debian/config/root/edithosts.sh +++ b/patches/systemvm/debian/config/root/edithosts.sh @@ -96,7 +96,7 @@ wait_for_dnsmasq () { return 1 } -if [ $no_dhcp_release -eq 0 ] +if [ "$ipv4" != '' -a $no_dhcp_release -eq 0 ] then #release previous dhcp lease if present logger -t cloud "edithosts: releasing $ipv4"