From 7153ff6c0cda4095e5da155bb0c93d64059a3b52 Mon Sep 17 00:00:00 2001 From: krw Date: Tue, 23 Aug 2016 16:49:48 +0000 Subject: [PATCH] Type. 'if' != 'lf'. Fixes error message and setting hostname from dhcp lease during install. Spotted & diff from Patrik Lundin. Thanks! --- distrib/miniroot/install.sub | 4 ++-- 1 file 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 @@ -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 -- 2.20.1