Merge pull request #719 from semarj/master
Fix the ifdown/ifup issue for once and for all?
This commit is contained in:
commit
c9fe21cf72
|
@ -39,9 +39,9 @@ module Vagrant
|
|||
# each specifically, we avoid reconfiguring eth0 (the NAT interface) so
|
||||
# SSH never dies.
|
||||
interfaces.each do |interface|
|
||||
vm.channel.sudo("/sbin/ifconfig eth#{interface} down 2> /dev/null")
|
||||
vm.channel.sudo("/sbin/ifdown eth#{interface} 2> /dev/null", :error_check => false)
|
||||
vm.channel.sudo("cat /tmp/vagrant-network-entry_#{interface} >> #{network_scripts_dir}/ifcfg-eth#{interface}")
|
||||
vm.channel.sudo("/sbin/ifconfig eth#{interface} up 2> /dev/null")
|
||||
vm.channel.sudo("/sbin/ifup eth#{interface} 2> /dev/null")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue