[packages] OpenVPN init script thinks client_disconnect is bool
authorJohn Crispin <john@openwrt.org>
Thu, 31 May 2012 09:35:55 +0000 (09:35 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 31 May 2012 09:35:55 +0000 (09:35 +0000)
The OpenVPN init script incorrectly tries to use the client_disconnect option
as a bool, but it's a string specifying a script to run when a client
disconnects.

fixes #11350

SVN-Revision: 32013

net/openvpn/files/openvpn.init

index d114e8adc19eb1ca55e6f5d8301ac046d4b609f7..c58f005f3651433278f5d7bb9d99999bb43f281c 100644 (file)
@@ -61,7 +61,7 @@ start_instance() {
        # append flags
        append_bools "$s" \
                auth_nocache auth_retry auth_user_pass_optional bind ccd_exclusive client client_cert_not_required \
-               client_disconnect client_to_client comp_lzo comp_noadapt disable \
+               client_to_client comp_lzo comp_noadapt disable \
                disable_occ down_pre duplicate_cn fast_io float http_proxy_retry \
                ifconfig_noexec ifconfig_nowarn ifconfig_pool_linear management_forget_disconnect management_hold \
                management_query_passwords management_signal mktun mlock mtu_test multihome mute_replay_warnings \
@@ -74,7 +74,7 @@ start_instance() {
        # append params
        append_params "$s" \
                cd askpass auth auth_user_pass auth_user_pass_verify bcast_buffers ca cert \
-               chroot cipher client_config_dir client_connect config connect_freq \
+               chroot cipher client_config_dir client_connect client_disconnect config connect_freq \
                connect_retry connect_timeout connect_retry_max crl_verify dev dev_node dev_type dh \
                echo engine explicit_exit_notify fragment group hand_window hash_size \
                http_proxy http_proxy_option http_proxy_timeout ifconfig ifconfig_pool \