diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-02-08 17:42:29 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-02-08 17:42:29 +0000 |
commit | d1b83f8bb6e1bc54b2b16eace08563acb5e968a0 (patch) | |
tree | fa02ab87e670f89b90735273d14d912ef40d6e10 /distrib/miniroot/install.sub | |
parent | 83a15565411bc4920824b5a39896ee80231a742f (diff) |
Replace 'localhost' with '127.0.0.1' and add -q to route invocations
in enable_network(). From /etc/netstart.
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 5174c3cdfbb..bd64f888c01 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.328 2004/02/08 11:31:43 krw Exp $ +# $OpenBSD: install.sub,v 1.329 2004/02/08 17:42:28 krw Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2003 Todd Miller, Theo de Raadt, Ken Westerback @@ -650,7 +650,7 @@ enable_network() { # Set the address for the loopback interface. Bringing the # interface up, automatically invokes the IPv6 address ::1. - ifconfig lo0 inet localhost + ifconfig lo0 inet 127.0.0.1 # configure all of the non-loopback interfaces which we know about. # refer to hostname.if(5) @@ -729,7 +729,7 @@ enable_network() { if [ "$bcaddr" -a "$bcaddr" != "NONE" ]; then cmd="$cmd broadcast $bcaddr" fi - [ "$alias" ] && rtcmd="; route -n add -host $name 127.0.0.1" + [ "$alias" ] && rtcmd="; route -qn add -host $name 127.0.0.1" ;; inet6) # Ignore IPv6 setup @@ -748,7 +748,7 @@ enable_network() { # that name must be in /etc/hosts. if [ -f /mnt/etc/mygate ]; then route delete default >/dev/null 2>&1 - route -n add -host default $(< /mnt/etc/mygate) + route -qn add -host default $(< /mnt/etc/mygate) fi # Use loopback, not the wire. |