diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2022-09-04 06:57:14 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2022-09-04 06:57:14 +0000 |
commit | 1d62b38cf274b8e601ca327efdb23bbbac0862ac (patch) | |
tree | a1df96abbcc39b8351bb230eb903133b6929bdc3 /etc/rc.d | |
parent | 610fb17daf6f52381936dd2c7766f196a7f04474 (diff) |
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!
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/iked | 3 |
1 files changed, 2 insertions, 1 deletions
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 |