mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
rtty: update to 7.0.1
Drop the depend of libuwsc Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
@@ -10,5 +10,4 @@
|
||||
# option host 'your-server-host' # Server host
|
||||
# option port '5912' # Server Port
|
||||
# option ssl 1 # Whether to use ssl
|
||||
# option keepalive 5 # keep alive in seconds for this client
|
||||
# option token 'your-token' # generated by rttys
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user