diff options
author | Roy Marples <roy@marples.name> | 2007-11-28 16:12:45 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-11-28 16:12:45 +0000 |
commit | f796ad463d86a0969821d58a9aa1b02307917b91 (patch) | |
tree | b533ec9285f53a06c2683d3afc35b862a27e4167 /init.d.misc/openvpn | |
parent | 9252492d2f67dce7ed4400dd660999db8467156d (diff) |
Load the tun/tap modules on BSD
Diffstat (limited to 'init.d.misc/openvpn')
-rwxr-xr-x | init.d.misc/openvpn | 4 |
1 files changed, 4 insertions, 0 deletions
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 |