summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r--distrib/miniroot/install.sub8
1 files changed, 4 insertions, 4 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index efcd3d97011..b514d2e2b4b 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sub,v 1.170 2001/10/15 22:58:59 krw Exp $
+# $OpenBSD: install.sub,v 1.171 2001/10/31 01:33:24 krw Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997,1998 Todd Miller, Theo de Raadt
@@ -2248,9 +2248,7 @@ donetconfig() {
echo "any name servers."
echo
- configurenetwork
-
- # Get FQDN after possible DHCP invocation
+ # Get FQDN before creation of hosts file entries in addhostent()
if [ -f /tmp/resolv.conf.shadow ]; then
get_fqdn /tmp/resolv.conf.shadow
else
@@ -2258,6 +2256,8 @@ donetconfig() {
get_fqdn /tmp/resolv.conf
fi
+ configurenetwork
+
resp=`route -n show |
grep '^default' |
sed -e 's/^default //' -e 's/ .*//'`