cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/master to 2b325af
Date Tue, 20 May 2014 10:29:57 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 61c765b23 -> 2b325afb4


A slightly more reliable way of extracting the device name. Thanks John.

Signed-off-by: Daan Hoogland <daan@onecht.net>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2b325afb
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2b325afb
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2b325afb

Branch: refs/heads/master
Commit: 2b325afb457c3ecfef23768a357665dfbba7b050
Parents: 61c765b
Author: Joris van Lieshout <jvanlieshout@schubergphilis.com>
Authored: Tue May 20 11:02:14 2014 +0200
Committer: Daan Hoogland <daan@onecht.net>
Committed: Tue May 20 12:29:41 2014 +0200

----------------------------------------------------------------------
 systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2b325afb/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh b/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
index c1046c6..a07f40d 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
+++ b/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh
@@ -99,7 +99,7 @@ if [ $dnsmasq_managed_lease ]
 then
   #release previous dhcp lease if present
   logger -t cloud "edithosts: releasing $ipv4"
-  dhcp_release $(ip route get "$ipv4/32" | tr " " "\n" | grep eth) $ipv4 $(grep "$ipv4 "
$DHCP_LEASES | awk '{print $2}') > /dev/null 2>&1
+  dhcp_release $(ip route get "$ipv4/32" | grep " dev " | sed -e "s/^.* dev \([^ ]*\) .*$/\1/g")
$ipv4 $(grep "$ipv4 " $DHCP_LEASES | awk '{print $2}') > /dev/null 2>&1
   logger -t cloud "edithosts: released $ipv4"
 fi
 


Mime
View raw message