Use ifup on the host-only interface, rather than rebooting all interfaces.

This commit is contained in:
Mike Williams 2010-10-15 17:15:01 +11:00 committed by Mitchell Hashimoto
parent a4abdb1403
commit 9a254937fc
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ module Vagrant
vm.ssh.execute do |ssh|
ssh.exec!("sudo su -c 'cat /tmp/vagrant-network-entry >> /etc/network/interfaces'")
ssh.exec!("sudo /etc/init.d/networking restart")
ssh.exec!("sudo /sbin/ifup eth#{net_options[:adapter]}")
end
end