diff options
Diffstat (limited to 'net/socat/files/socat.init')
-rw-r--r-- | net/socat/files/socat.init | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/socat/files/socat.init b/net/socat/files/socat.init index a4d3c8224..03573a01e 100644 --- a/net/socat/files/socat.init +++ b/net/socat/files/socat.init @@ -12,7 +12,8 @@ validate_section_socat() { uci_load_validate socat socat "$1" "$2" \ 'enable:bool:1' \ - 'SocatOptions:or(string, list(string))' + 'SocatOptions:or(string, list(string))' \ + 'user:string:root' } append_param_command() @@ -23,6 +24,7 @@ append_param_command() socat_instance() { local is_list + local user [ "$2" = 0 ] || { echo "validation failed" @@ -39,6 +41,10 @@ socat_instance() else config_list_foreach "$1" SocatOptions append_param_command fi + config_get user "$1" user + if [ -n "$user" ]; then + procd_set_param user $user + fi procd_set_param stdout 1 procd_set_param stderr 1 procd_close_instance |