From f796ad463d86a0969821d58a9aa1b02307917b91 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 28 Nov 2007 16:12:45 +0000 Subject: [PATCH] Load the tun/tap modules on BSD --- init.d.misc/openvpn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.d.misc/openvpn b/init.d.misc/openvpn index 6beff325..bdc9558f 100755 --- a/init.d.misc/openvpn +++ b/init.d.misc/openvpn @@ -77,6 +77,10 @@ start_pre() { ln -s /dev/misc/net/tun /dev/net/tun eend $? fi + else + # Hammer the modules home by default + sysctl -a | grep -q '\.tun\.' || kldload if_tun + sysctl -a | grep -q '\.tap\.' || kldload if_tap fi # If the config file does not specify the cd option, we do