[packages] openvpn: treat "up" and "down" as quoted parameters, this way commands with arguments can be specified in uci
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17574 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2c011d535c
commit
b05f69a84e
@ -83,7 +83,7 @@ start_service() {
|
|||||||
append_params "$s" \
|
append_params "$s" \
|
||||||
askpass auth auth_user_pass auth_user_pass_verify bcast_buffers ca cd cert \
|
askpass auth auth_user_pass auth_user_pass_verify bcast_buffers ca cd cert \
|
||||||
chroot cipher client_config_dir client_connect config connect_freq \
|
chroot cipher client_config_dir client_connect config connect_freq \
|
||||||
connect_retry connect_timeout connect_retry_max crl_verify dev dev_node dev_type dh down \
|
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 \
|
echo engine explicit_exit_notify fragment group hand_window hash_size \
|
||||||
http_proxy http_proxy_option http_proxy_timeout ifconfig ifconfig_pool \
|
http_proxy http_proxy_option http_proxy_timeout ifconfig ifconfig_pool \
|
||||||
ifconfig_pool_persist ifconfig_push inactive ipchange iroute keepalive \
|
ifconfig_pool_persist ifconfig_push inactive ipchange iroute keepalive \
|
||||||
@ -97,11 +97,11 @@ start_service() {
|
|||||||
route_metric route_up rport script_security secret server server_bridge setenv shaper sndbuf \
|
route_metric route_up rport script_security secret server server_bridge setenv shaper sndbuf \
|
||||||
socks_proxy status status_version syslog tcp_queue_limit tls_auth \
|
socks_proxy status status_version syslog tcp_queue_limit tls_auth \
|
||||||
tls_cipher tls_remote tls_timeout tls_verify tmp_dir topology tran_window \
|
tls_cipher tls_remote tls_timeout tls_verify tmp_dir topology tran_window \
|
||||||
tun_mtu tun_mtu_extra txqueuelen up user verb
|
tun_mtu tun_mtu_extra txqueuelen user verb
|
||||||
|
|
||||||
# append multi-value params
|
# append multi-value params
|
||||||
append_params_quoted "$s" \
|
append_params_quoted "$s" \
|
||||||
push
|
down push up
|
||||||
|
|
||||||
|
|
||||||
[ -n "$ARGS" ] && \
|
[ -n "$ARGS" ] && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user