Merge pull request #698 from semarj/master

Fix crash when using an additional interface
This commit is contained in:
Mitchell Hashimoto 2012-01-31 20:56:22 -08:00
commit e33b9e9c78
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