diff options
Diffstat (limited to 'al2-wireguard/entrypoint.sh')
-rwxr-xr-x | al2-wireguard/entrypoint.sh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/al2-wireguard/entrypoint.sh b/al2-wireguard/entrypoint.sh deleted file mode 100755 index 93f59de..0000000 --- a/al2-wireguard/entrypoint.sh +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # This needs the SYS_MODULES and NET_ADMIN capabilities | ||
4 | # | ||
5 | # /etc/wireguard should be mounted and include wg-quick configs | ||
6 | # | ||
7 | # /lib/modules/$(uname -r) should be mounted to same in container | ||
8 | |||
9 | modprobe ip6_udp_tunnel | ||
10 | modprobe udp_tunnel | ||
11 | |||
12 | insmod /opt/wireguard/wireguard.ko | ||
13 | |||
14 | for i in /etc/wireguard/*; do | ||
15 | wg-quick up "$(basename ${i/.conf/})" | ||
16 | done | ||
17 | |||
18 | exec "$@" | ||