timemngr: 1.0.11

This commit is contained in:
Vivek Kumar Dutta 2023-12-12 18:18:59 +05:30
parent 48d35004d4
commit c0bdff6a1c
3 changed files with 5 additions and 3 deletions

View file

@ -5,13 +5,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=timemngr
PKG_VERSION:=1.0.10
PKG_VERSION:=1.0.11
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/timemngr.git
PKG_SOURCE_VERSION:=7c6913f97c7e836064b9e8a663666f968d68c5a1
PKG_SOURCE_VERSION:=14ea999ba72e878a0b11b227791e4e45a7bb520c
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
endif

View file

@ -18,7 +18,7 @@ log() {
validate_global_section() {
uci_validate_section time global global \
'enable:bool:1' \
'loglevel:uinteger:1'
'loglevel:uinteger:8'
}
start_service() {
@ -40,6 +40,7 @@ start_service() {
procd_open_instance timemngr_ubus
procd_set_param command $PROG_UBUS
procd_append_param command -l ${loglevel}
procd_set_param respawn
procd_close_instance
generate_config

View file

@ -180,5 +180,6 @@ generate_config() {
create_service() {
procd_open_instance timemngr
procd_set_param command "/sbin/ntpd" -g -u ntp:ntp -n -c ${CONF_FILE}
procd_set_param respawn
procd_close_instance
}