rtty: update to 7.0.1

Drop the depend of libuwsc

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2020-01-31 16:31:09 +08:00
parent d56c71b1b3
commit 34e19dbb6f
3 changed files with 25 additions and 18 deletions
+5 -4
View File
@@ -13,7 +13,6 @@ validate_rtty_section() {
'host:host' \
'port:port' \
'ssl:bool:0' \
'keepalive:uinteger:5' \
'token:maxlength(32)'
}
@@ -44,10 +43,12 @@ start_rtty() {
return 1
}
[ -z "$id" ] && {
id=$(cat /sys/class/net/$ifname/address | sed 's/://g' | tr 'a-z' 'A-Z')
}
procd_open_instance
procd_set_param command $BIN -h $host -p $port -a -k $keepalive
[ -n "$ifname" ] && procd_append_param command -i "$ifname"
[ -n "$id" ] && procd_append_param command -I "$id"
procd_set_param command $BIN -h $host -p $port -I "$id" -a
[ -n "$description" ] && procd_append_param command -d "$description"
[ "$ssl" = "1" ] && procd_append_param command -s
[ -n "$token" ] && procd_append_param command -t "$token"