From 496ecd7b87d4dd06dce2601d0d8710c4035747b8 Mon Sep 17 00:00:00 2001 From: zlonghofer <70376264+zlonghofer@users.noreply.github.com> Date: Sun, 8 Dec 2024 19:11:37 -0600 Subject: [PATCH] Update README.md Added `modinfo` command to get module availability. Added `lsmod | grep wireguard` to check whether the module is loaded to the kernel. Added `sudo` to the `modprobe` command because it requires root access to modify the kernel. --- examples/docker-compose/README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/examples/docker-compose/README.md b/examples/docker-compose/README.md index 951df08f..2a77ed98 100644 --- a/examples/docker-compose/README.md +++ b/examples/docker-compose/README.md @@ -6,7 +6,17 @@ Depending on if the Wireguard kernel module is available on your system you have You can check if the kernel modules are available via the following command: ```shell -modprobe wireguard +modinfo wireguard +``` + +This will return information about the wireguard kernel module if it is available. If it is available, you can check if it is loaded via the following command: +```shell +lsmod | grep wireguard +``` + +If it is available but not loaded, you can load the module via the following command: +```shell +sudo modprobe wireguard ``` If the command exits successfully and doesn't print an error the kernel modules are available.