diff options
author | 2005-05-24 22:38:41 +0000 | |
---|---|---|
committer | 2005-05-24 22:38:41 +0000 | |
commit | f6d3be3efa20dc9b25453ac3a256b7e48036c3dc (patch) | |
tree | 631b9b956682fbab322c3ea60229dcb8aace29ac | |
parent | Add scaffolding for feature tests that will be used by our include files. (diff) | |
download | wireguard-openbsd-f6d3be3efa20dc9b25453ac3a256b7e48036c3dc.tar.xz wireguard-openbsd-f6d3be3efa20dc9b25453ac3a256b7e48036c3dc.zip |
Checking for the address '0.0.0.0' no longer works as test for
dhclient failure. Just check if any inet address was assigned.
-rw-r--r-- | distrib/miniroot/install.sub | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index f0cf717cc04..80434fa2db2 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.385 2005/04/30 14:09:41 krw Exp $ +# $OpenBSD: install.sub,v 1.386 2005/05/24 22:38:41 krw Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2005 Todd Miller, Theo de Raadt, Ken Westerback @@ -593,7 +593,7 @@ v6_info() { } # Construct etc/dhclient.conf and issue DHCP request. Return FALSE if -# no IP address or 0.0.0.0 assigned to $1. +# no IP address assigned to $1. # # $1 == interface # $2 == hostname (optional). @@ -621,7 +621,7 @@ __EOT set -- $(v4_info $_ifs) - if [[ $1 == UP && $2 != "0.0.0.0" ]]; then + if [[ $1 == UP && -n $2 ]]; then # Move configuration files to where they will be copied to the # installed system. Overwrites configuration information from # last successful dhcp attempt. |