From c9e6a44dd4c6ac2a9d5b440e53d40420e221611f Mon Sep 17 00:00:00 2001 From: kn Date: Wed, 29 Mar 2023 17:40:24 +0000 Subject: [PATCH] Quote possible 'none' answer as part of help text after question 'Default IPv4 route?' takes an IP or this word, not no IP at all. All other questions already quote their 'none', 'done', etc. answers. No behaviour change for autoinstall(8) files, questions end after the qestion mark and potential answers/help in parentheses comes after that. --- 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 b8dc731b581..537a9ae3612 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.1236 2023/03/27 06:15:43 tb Exp $ +# $OpenBSD: install.sub,v 1.1237 2023/03/29 17:40:24 kn Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer @@ -1432,7 +1432,7 @@ v4_defroute() { [[ -n $_dr ]] && isin "$_dr_if" $(get_ifs dhcp) && return while :; do - ask_until "Default IPv4 route? (IPv4 address or none)" "$_dr" + ask_until "Default IPv4 route? (IPv4 address or 'none')" "$_dr" [[ $resp == none ]] && break route delete -inet default >/dev/null 2>&1 if route -n add -inet -host default "$resp"; then -- 2.20.1