]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
openvpn: Silence when loading the tun module goes wrong
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Jul 2025 09:00:09 +0000 (09:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Jul 2025 09:00:09 +0000 (09:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/openvpn-n2n
src/initscripts/system/openvpn-rw

index 4d55f4cbd5243f3409840cb50ed09fc387485ee2..9853983795f122a555fd2c03faaf935cf8e01e52 100644 (file)
@@ -252,7 +252,7 @@ start() {
        fi
 
        # Load the tun module
-       modprobe tun
+       modprobe tun &>/dev/null
 
        boot_mesg "Starting OpenVPN N2N connection '${name}'..."
 
index 56a62d71cc87213043063c7f5d0f4c6f82622f72..6359d0d08cad3c427f94406ad20c928de64aa3de 100644 (file)
@@ -35,7 +35,7 @@ case "${1}" in
                fi
 
                # Load the tun module
-               modprobe tun
+               modprobe tun &>/dev/null
 
                # Flush all firewall rules
                iptables -F OVPNINPUTRW