making the same ifdown -> ifconfig change for debian
This commit is contained in:
parent
e9a9f799bf
commit
cc94f1ee2c
|
@ -38,7 +38,7 @@ module Vagrant
|
||||||
# each specifically, we avoid reconfiguring eth0 (the NAT interface) so
|
# each specifically, we avoid reconfiguring eth0 (the NAT interface) so
|
||||||
# SSH never dies.
|
# SSH never dies.
|
||||||
interfaces.each do |interface|
|
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
|
end
|
||||||
|
|
||||||
vm.channel.sudo("cat /tmp/vagrant-network-entry >> /etc/network/interfaces")
|
vm.channel.sudo("cat /tmp/vagrant-network-entry >> /etc/network/interfaces")
|
||||||
|
|
Loading…
Reference in New Issue