aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-connectivity/dhcp/files/dhclient-exit-hooks3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-connectivity/dhcp/files/dhclient-exit-hooks b/recipes-connectivity/dhcp/files/dhclient-exit-hooks
index 3be5e024..41bcb084 100644
--- a/recipes-connectivity/dhcp/files/dhclient-exit-hooks
+++ b/recipes-connectivity/dhcp/files/dhclient-exit-hooks
@@ -66,6 +66,9 @@ while [ $# -ne 0 ]; do
elif [ $mask -gt 8 ]; then
destination="-net $1.$2.0.0/$mask"
shift; shift
+ #Add the default route
+ elif [ $mask -eq 0 ]; then
+ destination="default"
else
destination="-net $1.0.0.0/$mask"
shift