Load the tun/tap modules on BSD
This commit is contained in:
parent
9252492d2f
commit
f796ad463d
@ -77,6 +77,10 @@ start_pre() {
|
|||||||
ln -s /dev/misc/net/tun /dev/net/tun
|
ln -s /dev/misc/net/tun /dev/net/tun
|
||||||
eend $?
|
eend $?
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
# If the config file does not specify the cd option, we do
|
# If the config file does not specify the cd option, we do
|
||||||
|
Loading…
Reference in New Issue
Block a user