From cd01f7dda340eada767497c9c5f6650af9929731 Mon Sep 17 00:00:00 2001 From: NightPumpkin Date: Wed, 18 Aug 2021 15:34:04 +0200 Subject: [PATCH] Ajout TUN.sh --- .../TUN.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docker-compose/openvpn-rutorrent-prowlarr-jackett-flaresolver-radarr-sonarr/TUN.sh diff --git a/docker-compose/openvpn-rutorrent-prowlarr-jackett-flaresolver-radarr-sonarr/TUN.sh b/docker-compose/openvpn-rutorrent-prowlarr-jackett-flaresolver-radarr-sonarr/TUN.sh new file mode 100644 index 0000000..45fa8f1 --- /dev/null +++ b/docker-compose/openvpn-rutorrent-prowlarr-jackett-flaresolver-radarr-sonarr/TUN.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# Create the necessary file structure for /dev/net/tun +if ( [ ! -c /dev/net/tun ] ); then + if ( [ ! -d /dev/net ] ); then + mkdir -m 755 /dev/net + fi + mknod /dev/net/tun c 10 200 + chmod 0755 /dev/net/tun +fi + +# Load the tun module if not already loaded +if ( !(lsmod | grep -q "^tun\s") ); then + insmod /lib/modules/tun.ko +fi \ No newline at end of file