|
@ -13,7 +13,9 @@ validate_rtty_section() { |
|
|
'host:host' \ |
|
|
'host:host' \ |
|
|
'port:port' \ |
|
|
'port:port' \ |
|
|
'ssl:bool:0' \ |
|
|
'ssl:bool:0' \ |
|
|
|
|
|
'insecure:bool:0' \ |
|
|
'token:maxlength(32)' \ |
|
|
'token:maxlength(32)' \ |
|
|
|
|
|
'username:string' \ |
|
|
'verbose:bool:0' |
|
|
'verbose:bool:0' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -48,7 +50,9 @@ start_rtty() { |
|
|
[ -n "$port" ] && procd_append_param command -p "$port" |
|
|
[ -n "$port" ] && procd_append_param command -p "$port" |
|
|
[ -n "$description" ] && procd_append_param command -d "$description" |
|
|
[ -n "$description" ] && procd_append_param command -d "$description" |
|
|
[ "$ssl" = "1" ] && procd_append_param command -s |
|
|
[ "$ssl" = "1" ] && procd_append_param command -s |
|
|
|
|
|
[ "$insecure" = "1" ] && procd_append_param command -x |
|
|
[ -n "$token" ] && procd_append_param command -t "$token" |
|
|
[ -n "$token" ] && procd_append_param command -t "$token" |
|
|
|
|
|
[ -n "$username" ] && procd_append_param command -f "$username" |
|
|
[ "$verbose" = "1" ] && procd_append_param command -v |
|
|
[ "$verbose" = "1" ] && procd_append_param command -v |
|
|
procd_set_param respawn |
|
|
procd_set_param respawn |
|
|
procd_close_instance |
|
|
procd_close_instance |
|
|