diff options
-rw-r--r-- | recipes-connectivity/dhcp/files/dhclient-exit-hooks | 3 |
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 3be5e02..41bcb08 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 | |||
66 | elif [ $mask -gt 8 ]; then | 66 | elif [ $mask -gt 8 ]; then |
67 | destination="-net $1.$2.0.0/$mask" | 67 | destination="-net $1.$2.0.0/$mask" |
68 | shift; shift | 68 | shift; shift |
69 | #Add the default route | ||
70 | elif [ $mask -eq 0 ]; then | ||
71 | destination="default" | ||
69 | else | 72 | else |
70 | destination="-net $1.0.0.0/$mask" | 73 | destination="-net $1.0.0.0/$mask" |
71 | shift | 74 | shift |