Merge pull request #947 from justinlynn/add_dhcp_default_route_option

add workaround for ubuntu precise not properly loading routes from dhcp
This commit is contained in:
Mitchell Hashimoto 2012-05-25 08:42:52 -07:00
commit 268b13b799
1 changed files with 3 additions and 0 deletions

View File

@ -4,5 +4,8 @@ auto eth<%= options[:interface] %>
iface eth<%= options[:interface] %> inet dhcp
<% if !options[:use_dhcp_assigned_default_route] %>
post-up route del default dev $IFACE
<% else %>
# needed as some newer distribution do not properly load routes, ubuntu 12.04
post-up dhclient $IFACE
<% end %>
#VAGRANT-END