From 9fe1a2b9fabcc655ef4f2db0e384e9953fc9d691 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Mon, 15 Jul 2013 18:00:11 -0700 Subject: [PATCH] CLOUDSTACK-3540: Fix edithosts.sh to prevent removing active dhcp entries IP match must terminated by comma. --- 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 817d72640b8..9d01b9a0f80 100755 --- a/patches/systemvm/debian/config/root/edithosts.sh +++ b/patches/systemvm/debian/config/root/edithosts.sh @@ -207,7 +207,7 @@ then fi [ "$routes" != "" ] && echo "$tag,121,$routes" >> $DHCP_OPTS #delete entry we just put in because we need a tag - sed -i /$ipv4/d $DHCP_HOSTS + sed -i /$ipv4,/d $DHCP_HOSTS #put it back with a tag echo "$mac,set:$tag,$ipv4,$host,infinite" >>$DHCP_HOSTS fi