summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2008-06-09 20:03:35 +0000
committerbrooks <brooks@FreeBSD.org>2008-06-09 20:03:35 +0000
commit675039c5448207b250f3d108a4733babe3c408ba (patch)
tree38d9e82de14ae8267ec2aa693d187034f96dbcb7 /sbin/dhclient
parentfcffc805d8ec5c3c9faaa218023808e6d4f3149d (diff)
downloadFreeBSD-src-675039c5448207b250f3d108a4733babe3c408ba.zip
FreeBSD-src-675039c5448207b250f3d108a4733babe3c408ba.tar.gz
Use the -n flag to route(8) when calling "route get". Otherwise we hang
for a long time if we get a lease, but DNS isn't working. MFC after: 1 week
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dhclient-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script
index f6da4f6..c457bf4 100644
--- a/sbin/dhclient/dhclient-script
+++ b/sbin/dhclient/dhclient-script
@@ -260,7 +260,7 @@ exit_with_hooks() {
# commands that are available prior to /usr being mounted.
is_default_interface()
{
- routeget="`route get -inet default`"
+ routeget="`route -n get -inet default`"
oldifs="$IFS"
IFS="
"
OpenPOWER on IntegriCloud