From 51d97e1b234e6070deafb9cd0bbc45a807d206d2 Mon Sep 17 00:00:00 2001
From: "Andrey V. Elsukov" <ae@FreeBSD.org>
Date: Mon, 6 May 2019 08:30:53 +0000
Subject: [PATCH] Add ipsec.ko to required_modules for rc.d/ipsec script.

Thus it can be automatically loaded if ipsec_enable="YES" and option IPSEC
is not in the kernel config.

MFC after:	1 week
---
 libexec/rc/rc.d/ipsec | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libexec/rc/rc.d/ipsec b/libexec/rc/rc.d/ipsec
index a48bd485d999..c9d82d09723a 100755
--- a/libexec/rc/rc.d/ipsec
+++ b/libexec/rc/rc.d/ipsec
@@ -20,6 +20,7 @@ stop_cmd="ipsec_stop"
 reload_cmd="ipsec_reload"
 extra_commands="reload"
 ipsec_program="/sbin/setkey"
+required_modules="ipsec"
 # ipsec_file is set by rc.conf
 
 ipsec_prestart()