git: 568a1a1d15e0 - stable/14 - wg.4: Document kernel config option

From: Alexander Ziaee <ziaee_at_FreeBSD.org>
Date: Wed, 12 Mar 2025 03:45:19 UTC
The branch stable/14 has been updated by ziaee:

URL: https://cgit.FreeBSD.org/src/commit/?id=568a1a1d15e0a8451cf914c84eda81259bef3e06

commit 568a1a1d15e0a8451cf914c84eda81259bef3e06
Author:     Lexi Winter <lexi@hemlock.eden.le-fay.org>
AuthorDate: 2025-02-12 12:18:15 +0000
Commit:     Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2025-03-12 03:44:24 +0000

    wg.4: Document kernel config option
    
    wg(4) can be compiled into the kernel (device wg), but the wg.4 manpage
    does not document this. Adjust it to mention this like other drivers do.
    
    MFC after:      3 days
    Reviewed by:    carlavilla, kevans, ziaee
    Approved by:    carlavilla (mentor)
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/1597
    
    (cherry picked from commit 780a4667bbde0daa90db900bb0f93f6337d6208b)
---
 share/man/man4/wg.4 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/share/man/man4/wg.4 b/share/man/man4/wg.4
index 05d6961a9610..482200f3bd51 100644
--- a/share/man/man4/wg.4
+++ b/share/man/man4/wg.4
@@ -23,14 +23,21 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd June 12, 2023
+.Dd February 12, 2025
 .Dt WG 4
 .Os
 .Sh NAME
 .Nm wg
 .Nd "WireGuard protocol driver"
 .Sh SYNOPSIS
-To load the driver as a module at boot time, place the following line in
+To compile this driver into the kernel,
+place the following lines in your kernel configuration file:
+.Bd -ragged -offset indent
+.Cd "device wg"
+.Ed
+.Pp
+Alternatively, to load the driver as a module at boot time,
+place the following line in
 .Xr loader.conf 5 :
 .Bd -literal -offset indent
 if_wg_load="YES"