From a11e99cdae40b8991af021f29b446e13c32f5a50 Mon Sep 17 00:00:00 2001 From: Ryan Gibbons Date: Wed, 18 Jan 2012 10:43:14 -0700 Subject: [PATCH] Switch to using ifconfig down instead of ifdown. ifdown will return non-zero status if device failed to get IP during dhcp. --- lib/vagrant/guest/redhat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/guest/redhat.rb b/lib/vagrant/guest/redhat.rb index 9445f9f93..a238141d7 100644 --- a/lib/vagrant/guest/redhat.rb +++ b/lib/vagrant/guest/redhat.rb @@ -39,7 +39,7 @@ module Vagrant # each specifically, we avoid reconfiguring eth0 (the NAT interface) so # SSH never dies. interfaces.each do |interface| - vm.channel.sudo("/sbin/ifdown eth#{interface} 2> /dev/null") + vm.channel.sudo("/sbin/ifconfig eth#{interface} down 2> /dev/null") vm.channel.sudo("cat /tmp/vagrant-network-entry_#{interface} >> #{network_scripts_dir}/ifcfg-eth#{interface}") vm.channel.sudo("/sbin/ifup eth#{interface}") end