From: ajacoutot Date: Sun, 4 Sep 2022 06:57:13 +0000 (+0000) Subject: Fix regression in previous commit. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e69c136ec7a6f21ec93aa471e773a8fab5608d5f;p=openbsd Fix regression in previous commit. Moving the configuration check to its own configtest function means rc_pre exit code will now be that of the && list (sasyncd_flags). Just do what isakmpd does and return 0. from lucas at sexy dot is, thanks! --- diff --git a/etc/rc.d/iked b/etc/rc.d/iked index 8cfb786e6a8..44861ace985 100644 --- a/etc/rc.d/iked +++ b/etc/rc.d/iked @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: iked,v 1.9 2022/08/29 19:14:25 ajacoutot Exp $ +# $OpenBSD: iked,v 1.10 2022/09/04 06:57:13 ajacoutot Exp $ daemon="/sbin/iked" @@ -15,6 +15,7 @@ rc_configtest() { rc_pre() { [[ ${sasyncd_flags} != NO ]] && daemon_flags="-S ${daemon_flags}" + return 0 } rc_cmd $1