From 9a254937fcebde7ae73cff25914e47e9c137ed2a Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Fri, 15 Oct 2010 17:15:01 +1100 Subject: [PATCH] Use ifup on the host-only interface, rather than rebooting all interfaces. --- lib/vagrant/systems/linux.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/systems/linux.rb b/lib/vagrant/systems/linux.rb index a36ae49ad..4be54dd4d 100644 --- a/lib/vagrant/systems/linux.rb +++ b/lib/vagrant/systems/linux.rb @@ -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