ssdpd: 1.0.1

This commit is contained in:
vdutta 2022-12-21 21:46:20 +05:30
parent 0b11d79816
commit 12e2a84ad1
2 changed files with 12 additions and 3 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ssdpd
PKG_VERSION:=1.0.0
PKG_VERSION:=1.0.1
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)

View file

@ -1,6 +1,6 @@
#!/bin/sh /etc/rc.common
START=80
START=99
STOP=02
USE_PROCD=1
@ -14,6 +14,7 @@ validate_ssdpd_ssdp_section()
{
uci_validate_section ssdpd ssdpd "ssdp" \
'enabled:bool:true' \
'debug:bool:0' \
'ipv6_enabled:bool:false' \
'socket_path:string' \
'ttl:uinteger' \
@ -33,10 +34,19 @@ configure_ssdp()
[ ${enabled} -eq 0 ] && return 0
procd_set_param command ${PROG}
if [ ${ipv6_enabled} -eq 1 ]; then
procd_append_param command -6
fi
if [ ${debug} -eq 1 ]; then
procd_set_param stdout 1
procd_set_param stderr 1
else
procd_set_param stdout 0
procd_set_param stderr 0
fi
if [ -n "${socket_path}" ]; then
procd_append_param command -s ${socket_path}
fi
@ -56,7 +66,6 @@ configure_ssdp()
start_service() {
procd_open_instance ssdp
procd_set_param command ${PROG}
configure_ssdp
procd_set_param respawn
procd_close_instance