Loading Dockerfile +0 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,6 @@ RUN apt-get update && apt-get -y upgrade && \ jq \ curl \ cpio \ kmod \ wget \ unzip \ procps \ Loading network.sh +3 −9 Original line number Diff line number Diff line Loading @@ -91,19 +91,13 @@ MAJOR="" _DhcpIP="" # 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 # Create the necessary file structure for /dev/net/tun if [ ! -c /dev/net/tun ]; then [ ! -d /dev/net ] && mkdir -m 755 /dev/net mknod /dev/net/tun c 10 200 chmod 666 /dev/net/tun fi # Load the tun module if not already loaded if ( !(lsmod | grep -q "^tun\s") ); then [ -f /lib/modules/tun.ko ] && insmod /lib/modules/tun.ko fi [ ! -c /dev/net/tun ] && echo "Error: TUN network interface not available..." && exit 85 #log "INFO" "Little dirty trick ..." Loading Loading
Dockerfile +0 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,6 @@ RUN apt-get update && apt-get -y upgrade && \ jq \ curl \ cpio \ kmod \ wget \ unzip \ procps \ Loading
network.sh +3 −9 Original line number Diff line number Diff line Loading @@ -91,19 +91,13 @@ MAJOR="" _DhcpIP="" # 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 # Create the necessary file structure for /dev/net/tun if [ ! -c /dev/net/tun ]; then [ ! -d /dev/net ] && mkdir -m 755 /dev/net mknod /dev/net/tun c 10 200 chmod 666 /dev/net/tun fi # Load the tun module if not already loaded if ( !(lsmod | grep -q "^tun\s") ); then [ -f /lib/modules/tun.ko ] && insmod /lib/modules/tun.ko fi [ ! -c /dev/net/tun ] && echo "Error: TUN network interface not available..." && exit 85 #log "INFO" "Little dirty trick ..." Loading