summaryrefslogtreecommitdiff
path: root/init.d.misc
diff options
context:
space:
mode:
Diffstat (limited to 'init.d.misc')
-rwxr-xr-xinit.d.misc/openvpn4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.d.misc/openvpn b/init.d.misc/openvpn
index 6beff32..bdc9558 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