summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-10-04 01:22:39 +0000
committerderaadt <deraadt@openbsd.org>2002-10-04 01:22:39 +0000
commit3b4432b20a53bbb4fcef89674da015ec30a46581 (patch)
tree14eb441560ed5536d97bfd059951a3aa1a477252
parentFix check for I2O based AMI cards (we don't want to match them here); me (diff)
downloadwireguard-openbsd-3b4432b20a53bbb4fcef89674da015ec30a46581.tar.xz
wireguard-openbsd-3b4432b20a53bbb4fcef89674da015ec30a46581.zip
krw fucked up; i must re-tag this file
-rw-r--r--distrib/miniroot/install.sub7
1 files changed, 2 insertions, 5 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 11a9b8d6024..112a7ade46d 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.264 2002/10/03 00:56:44 krw Exp $
+# $OpenBSD: install.sub,v 1.265 2002/10/04 01:22:39 deraadt Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2002 Todd Miller, Theo de Raadt, Ken Westerback
@@ -1742,10 +1742,7 @@ check_fs() {
# on that line as FQDN.
# $1 = resolv.conf file name
get_resolv_fqdn () {
- if [[ ! -f $1 ]]; then
- FQDN=
- return
- fi
+ [[ -f $1 ]] || return
FQDN=`sed -n \
-e '/^domain[[:space:]][[:space:]]*/{s///;s/\([^[:space:]]*\).*$/\1/;h;}' \