You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: root/etc/s6-overlay/s6-rc.d/init-wireguard-module/run
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@ ip link del dev test 2>/dev/null
8
8
if ip link add dev test type wireguard; then
9
9
echo "**** It seems the wireguard module is already active. Skipping kernel header install and module compilation. ****"
10
10
ip link del dev test
11
+
if capsh --print | grep -qv '\!cap_sys_module'; then
12
+
echo "**** As the wireguard module is already active you can remove the SYS_MODULE capability from your container run/compose. ****"
13
+
fi
11
14
else
12
15
echo "**** The wireguard module is not active. If you believe that your kernel should have wireguard support already, make sure that it is activated via modprobe! ****"
0 commit comments