From dabea9da0807bfc6a6147d725d7716a2843b68da Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Wed, 24 Jul 2013 00:49:21 -0700 Subject: [PATCH] CLOUDSTACK-3533: Add space after IP for dhcp_release To prevent use the wrong mac of the IP with same prefix. Thanks to Wei Zhou's comment! --- patches/systemvm/debian/config/root/edithosts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/systemvm/debian/config/root/edithosts.sh b/patches/systemvm/debian/config/root/edithosts.sh index 4eaecd45f77..b82fb8e79be 100755 --- a/patches/systemvm/debian/config/root/edithosts.sh +++ b/patches/systemvm/debian/config/root/edithosts.sh @@ -105,7 +105,7 @@ if [ $no_dhcp_release -eq 0 ] then #release previous dhcp lease if present logger -t cloud "edithosts: releasing $ipv4" - dhcp_release eth0 $ipv4 $(grep $ipv4 $DHCP_LEASES | awk '{print $2}') > /dev/null 2>&1 + dhcp_release eth0 $ipv4 $(grep "$ipv4 " $DHCP_LEASES | awk '{print $2}') > /dev/null 2>&1 logger -t cloud "edithosts: released $ipv4" fi