From 9761cdd839dfe0983d6286fa6bbe9c824f27aceb Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Mon, 9 Jun 2008 20:03:35 +0000 Subject: [PATCH] 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 --- sbin/dhclient/dhclient-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/dhclient/dhclient-script b/sbin/dhclient/dhclient-script index f6da4f6670ea..c457bf465303 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=" "