mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 15:08:40 +01:00
rtty: update to 7.1.1
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
@@ -13,7 +13,8 @@ validate_rtty_section() {
|
||||
'host:host' \
|
||||
'port:port' \
|
||||
'ssl:bool:0' \
|
||||
'token:maxlength(32)'
|
||||
'token:maxlength(32)' \
|
||||
'verbose:bool:0'
|
||||
}
|
||||
|
||||
start_rtty() {
|
||||
@@ -38,20 +39,17 @@ start_rtty() {
|
||||
return 1
|
||||
}
|
||||
|
||||
[ -z "$port" ] && {
|
||||
echo "port required" >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
[ -z "$id" ] && {
|
||||
id=$(cat /sys/class/net/$ifname/address | sed 's/://g' | tr 'a-z' 'A-Z')
|
||||
id=$(sed 's/://g' /sys/class/net/$ifname/address | tr 'a-z' 'A-Z')
|
||||
}
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command $BIN -h $host -p $port -I "$id" -a
|
||||
procd_set_param command $BIN -h $host -I "$id" -a
|
||||
[ -n "$port" ] && procd_append_param command -p "$port"
|
||||
[ -n "$description" ] && procd_append_param command -d "$description"
|
||||
[ "$ssl" = "1" ] && procd_append_param command -s
|
||||
[ -n "$token" ] && procd_append_param command -t "$token"
|
||||
[ "$verbose" = "1" ] && procd_append_param command -v
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user