properly restart the interface. Was failing with /sbin/ifup

This commit is contained in:
semarj 2012-01-31 22:36:38 -06:00
parent 8a5233aa8f
commit 535bda2a4e
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ module Vagrant
interfaces.each do |interface|
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}")
vm.channel.sudo("/sbin/ifconfig eth#{interface} up 2> /dev/null")
end
end