making the same ifdown -> ifconfig change for debian

This commit is contained in:
Ryan Gibbons 2012-01-18 10:51:01 -07:00 committed by Mitchell Hashimoto
parent e9a9f799bf
commit cc94f1ee2c
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ module Vagrant
# each specifically, we avoid reconfiguring eth0 (the NAT interface) so
# SSH never dies.
interfaces.each do |interface|
vm.channel.sudo("/sbin/ifdown eth#{interface} 2> /dev/null")
vm.channel.sudo("/sbin/ifconfig eth#{interface} down 2> /dev/null")
end
vm.channel.sudo("cat /tmp/vagrant-network-entry >> /etc/network/interfaces")