summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-01-11 06:07:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-01-11 06:07:17 +0000
commit82fe8cce8adf444a48b6c6bcd26fc2235bb41072 (patch)
tree7be26ea2d468a8c8ad428ccab048dca73df18b30
parent4ae424f26819cda58dd24753bf580e87d2f0e018 (diff)
add loopback routes late
-rw-r--r--etc/netstart12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/netstart b/etc/netstart
index 8166c196c39..bf800a279cc 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.91 2004/01/09 10:02:23 deraadt Exp $
+# $OpenBSD: netstart,v 1.92 2004/01/11 06:07:16 deraadt Exp $
# Returns true if $1 contains only alphanumerics
isalphanumeric() {
@@ -196,11 +196,7 @@ fi
# Set the address for the loopback interface.
# It will also initialize IPv6 address for lo0 (::1 and others).
-ifconfig lo0 inet localhost
-
-# Use loopback, not the wire.
-route -qn add -host $hostname localhost > /dev/null
-route -qn add -net 127 127.0.0.1 -reject > /dev/null
+ifconfig lo0 inet 127.0.0.1
if ifconfig lo0 inet6 >/dev/null 2>&1; then
# IPv6 configurations.
@@ -342,6 +338,10 @@ for hn in /etc/hostname.*; do
esac
done
+# Use loopback, not the wire.
+route -qn add -host $hostname 127.0.0.1 > /dev/null
+route -qn add -net 127 127.0.0.1 -reject > /dev/null
+
# Configure all the bridges.
for bn in /etc/bridgename.*; do
# Strip off /etc/bridgename. prefix