mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
rtty: Update to 3.1.1
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
@@ -10,3 +10,4 @@
|
||||
# option host 'your-server-host' # Server host
|
||||
# option port '5912' # Server Port
|
||||
# option ssl 1 # Whether to use ssl
|
||||
# option ping 5 # heartbeat interval(second)
|
||||
|
||||
@@ -17,7 +17,8 @@ start_rtty() {
|
||||
'description:maxlength(126)' \
|
||||
'host:host' \
|
||||
'port:port' \
|
||||
'ssl:bool:0'
|
||||
'ssl:bool:0' \
|
||||
'ping:uinteger:5'
|
||||
|
||||
[ $? -eq 1 ] && {
|
||||
echo "validation failed" >&2
|
||||
@@ -42,7 +43,7 @@ start_rtty() {
|
||||
}
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command $BIN -h $host -p $port -a
|
||||
procd_set_param command $BIN -h $host -p $port -a -P $ping
|
||||
[ -n "$ifname" ] && procd_append_param command -i "$ifname"
|
||||
[ -n "$id" ] && procd_append_param command -I "$id"
|
||||
[ -n "$description" ] && procd_append_param command -d "$description"
|
||||
|
||||
Reference in New Issue
Block a user