diff options
author | 2011-02-07 18:01:08 +0000 | |
---|---|---|
committer | 2011-02-07 18:01:08 +0000 | |
commit | 2170ad5b91da47406ef9df6de9f81d4b31579247 (patch) | |
tree | 544a249ccb4b3a994a1a522af328998b91c029d5 | |
parent | Update to tzdata2011b from elsie.nci.nih.gov (diff) | |
download | wireguard-openbsd-2170ad5b91da47406ef9df6de9f81d4b31579247.tar.xz wireguard-openbsd-2170ad5b91da47406ef9df6de9f81d4b31579247.zip |
Use absolute path to the temporary hosts file; causes /etc/hosts to be correctly
populated upon installation again.
-rw-r--r-- | distrib/miniroot/install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index fd9aa3265f8..d4e2e2ea8a4 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sh,v 1.216 2011/01/10 06:49:08 deraadt Exp $ +# $OpenBSD: install.sh,v 1.217 2011/02/07 18:01:08 miod Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -244,7 +244,7 @@ hostname >/tmp/myname # to '1.2.3.4 hostname.$FQDN hostname'. Leave untouched lines containing # domain information or aliases. These are lines the user added/changed # manually. Note we may have no hosts file if no interfaces were configured. -if [[ -f hosts ]]; then +if [[ -f /tmp/hosts ]]; then _dn=$(get_fqdn) while read _addr _hn _aliases; do if [[ -n $_aliases || $_hn != ${_hn%%.*} || -z $_dn ]]; then |