mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-20 23:58:38 +02:00
Merge pull request #14032 from ptpt52/p910nd-fix
p910nd: config trigger reload and default disabled
This commit is contained in:
commit
3010ef22fa
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=p910nd
|
PKG_NAME:=p910nd
|
||||||
PKG_VERSION:=0.97
|
PKG_VERSION:=0.97
|
||||||
PKG_RELEASE:=8
|
PKG_RELEASE:=9
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=@SF/p910nd
|
PKG_SOURCE_URL:=@SF/p910nd
|
||||||
|
|
|
@ -29,7 +29,7 @@ start_service() {
|
||||||
|
|
||||||
start_p910nd() {
|
start_p910nd() {
|
||||||
local section="$1" runas_root
|
local section="$1" runas_root
|
||||||
config_get_bool "enabled" "$section" "enabled" '1'
|
config_get_bool "enabled" "$section" "enabled" '0'
|
||||||
if [ "$enabled" -gt 0 ]; then
|
if [ "$enabled" -gt 0 ]; then
|
||||||
args="-d "
|
args="-d "
|
||||||
config_get port "$section" port
|
config_get port "$section" port
|
||||||
|
@ -57,3 +57,10 @@ start_p910nd() {
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service_triggers()
|
||||||
|
{
|
||||||
|
procd_open_trigger
|
||||||
|
procd_add_config_trigger "config.change" "p910nd" /etc/init.d/p910nd reload
|
||||||
|
procd_close_trigger
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user