mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-28 01:47:19 +01:00
Revert "timemngr: uci option for day light saving time"
This reverts commit b74c2d2d17.
This commit is contained in:
parent
abbab7118c
commit
627a4c4ad6
3 changed files with 3 additions and 21 deletions
|
|
@ -5,7 +5,7 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=timemngr
|
||||
PKG_VERSION:=1.1.1
|
||||
PKG_VERSION:=1.1.0
|
||||
|
||||
LOCAL_DEV:=0
|
||||
ifneq ($(LOCAL_DEV),1)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
config global 'global'
|
||||
option enable '1'
|
||||
option dst '1'
|
||||
|
||||
config client 'client'
|
||||
option enable '1'
|
||||
|
|
|
|||
|
|
@ -19,21 +19,6 @@ validate_global_section() {
|
|||
'mdns:bool:1'
|
||||
}
|
||||
|
||||
boot() {
|
||||
config_load time
|
||||
config_get_bool dst_enable global dst 1
|
||||
|
||||
if [ "${dst_enable}" -eq 1 ]; then
|
||||
if ! grep -qF "#timemngr-dst" /etc/crontabs/root; then
|
||||
echo "* * * * * service system restart #timemngr-dst" >> /etc/crontabs/root
|
||||
fi
|
||||
else
|
||||
sed -i '/#timemngr-dst/d' /etc/crontabs/root
|
||||
fi
|
||||
|
||||
start
|
||||
}
|
||||
|
||||
start_service() {
|
||||
local enable loglevel server_enable mdns
|
||||
|
||||
|
|
@ -60,10 +45,8 @@ start_service() {
|
|||
fi
|
||||
|
||||
# Generate Config & Start timemngr instance
|
||||
if [ "${enable}" -eq 1 ]; then
|
||||
generate_config
|
||||
create_service
|
||||
fi
|
||||
generate_config
|
||||
create_service
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue