diff options
author | Stanislav Brabec <utx@penguin.cz> | 2009-01-01 23:33:43 +0000 |
---|---|---|
committer | utx@penguin.cz <utx@penguin.cz> | 2009-01-01 23:35:15 +0000 |
commit | 435e2974120ea0a5218db519ef4a6360d4e6d319 (patch) | |
tree | f58a01031c005bc3f4e0f173a7aefc724df8a8e9 /packages/openvpn/files | |
parent | 3129426514932a31dc4820d72fbe21364b8055fa (diff) |
openvpn init script: Ensure that tun module is loaded.
Diffstat (limited to 'packages/openvpn/files')
-rwxr-xr-x | packages/openvpn/files/openvpn | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/openvpn/files/openvpn b/packages/openvpn/files/openvpn index 94bdc600e0..a3cd6a2f49 100755 --- a/packages/openvpn/files/openvpn +++ b/packages/openvpn/files/openvpn @@ -13,6 +13,7 @@ test -x $DAEMON || exit 0 test -d $CONFIG_DIR || exit 0 start_vpn () { + modprobe tun >/dev/null 2>&1 || true $DAEMON --daemon --writepid /var/run/openvpn.$NAME.pid \ --config $CONFIG_DIR/$NAME.conf --cd $CONFIG_DIR || echo -n " FAILED->" echo -n " $NAME" |