Fix mitchellh/vagrant#3860 by making sure post-up command never returns an error code. Deleting the default route won't magically start working after waiting N seconds.

This commit is contained in:
Daniel Parks 2014-07-28 23:15:07 -07:00
parent 89beb695f2
commit e7dce43af3
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
auto eth<%= options[:interface] %>
iface eth<%= options[:interface] %> inet dhcp
<% if !options[:use_dhcp_assigned_default_route] %>
post-up route del default dev $IFACE
post-up route del default dev $IFACE || true
<% else %>
# We need to disable eth0, see GH-2648
post-up route del default dev eth0