From e7dce43af3905a7a986ef6e3402bf6809ab90f16 Mon Sep 17 00:00:00 2001 From: Daniel Parks Date: Mon, 28 Jul 2014 23:15:07 -0700 Subject: [PATCH] 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. --- templates/guests/debian/network_dhcp.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/guests/debian/network_dhcp.erb b/templates/guests/debian/network_dhcp.erb index 1ad6f31e5..5a4ed783c 100644 --- a/templates/guests/debian/network_dhcp.erb +++ b/templates/guests/debian/network_dhcp.erb @@ -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