summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-08-23 16:49:49 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-08-23 16:49:49 +0000
commit890be69bf884ba1baf7373dc8210d1abff270945 (patch)
tree1a195a10a2ca2daeef71440de06aff5401c67952
parentf076f62cdb20dc57bc76d1a2a313b1400969cb8d (diff)
Type. 'if' != 'lf'. Fixes error message and setting hostname from dhcp lease
during install. Spotted & diff from Patrik Lundin. Thanks!
-rw-r--r--distrib/miniroot/install.sub4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index e221b7b2832..bf5f4472c10 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/ksh
-# $OpenBSD: install.sub,v 1.905 2016/08/21 19:22:15 halex Exp $
+# $OpenBSD: install.sub,v 1.906 2016/08/23 16:49:48 krw Exp $
#
# Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback
# Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org>
@@ -539,7 +539,7 @@ get_responsefile() {
AI_SERVER=$(lease_value $_lf server-name tftp-server-name next-server)
export AI_SERVER
- _hn=$(lease_value $_if host-name)
+ _hn=$(lease_value $_lf host-name)
hostname "$_hn"
done