git: bad602850e56 - main - bsdinstall: Fix local_unbound option default on revisit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 29 Nov 2022 03:41:51 UTC
The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=bad602850e56d9e3b4900c0063a40dd29ea448fe commit bad602850e56d9e3b4900c0063a40dd29ea448fe Author: Jessica Clarke <jrtc27@FreeBSD.org> AuthorDate: 2022-11-29 03:09:51 +0000 Commit: Jessica Clarke <jrtc27@FreeBSD.org> CommitDate: 2022-11-29 03:33:47 +0000 bsdinstall: Fix local_unbound option default on revisit The variable used for the checklist's default value needs to correspond to the rc.conf variable as that's what's being parsed to determine them. In the case of local_unbound it's missing the _enable suffix and thus always defaults to off on revisit. Fixes: 58eb9abb3157 ("Add a line to the post-installation configuration dialog to enable the local_unbound service.") --- usr.sbin/bsdinstall/scripts/services | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bsdinstall/scripts/services b/usr.sbin/bsdinstall/scripts/services index 294e044c74ae..09b6b0734e48 100755 --- a/usr.sbin/bsdinstall/scripts/services +++ b/usr.sbin/bsdinstall/scripts/services @@ -46,7 +46,8 @@ DAEMONS=$( bsddialog --backtitle "$OSNAME Installer" \ --title "System Configuration" --no-cancel --separate-output \ --checklist "Choose the services you would like to be started at boot:" \ 0 0 0 \ - local_unbound "Local caching validating resolver" ${local_unbound:-off} \ + local_unbound "Local caching validating resolver" \ + ${local_unbound_enable:-off} \ sshd "Secure shell daemon" ${sshd_enable:-off} \ moused "PS/2 mouse pointer on console" ${moused_enable:-off} \ ntpd "Synchronize system and network time" ${ntpd_enable:-off} \