🐤 Sync 2026-03-30 12:52:58

This commit is contained in:
github-actions[bot] committed 2026-03-30 12:52:58 +08:00
1 parent 238cb2aa39
commit 9941499a61
63 files changed
+3456 -4029

No files matched your search

@@ -1,6 +1,7 @@
#!/bin/sh /etc/rc.common
#
# Copyright (C) 2023 sirpdboy herboy2008@gmail.com
# Copyright (C) 2022-2026 sirpdboy herboy2008@gmail.com
#
START=99
@@ -21,9 +22,9 @@ _timecontrol_start() {
if [ "$(grep -c 'option enable .1.' /etc/config/$NAME 2>/dev/null)" -gt "0" ]; then
touch $LOCK
timecontrol start
sleep 2
start_instance
else
echo "INFO: ûÓÐÈκιÜÖÆµÄÉ豸£¡"
stop_service
fi
}
@@ -40,11 +41,11 @@ service_triggers() {
stop_service(){
kill -9 $(busybox ps -w | grep 'timecontrolctrl' | grep -v 'grep' | awk '{print $1}') >/dev/null 2>&1
killall timecontrolctrl 2>/dev/null
rm -f $LOCK 2>/dev/null
timecontrol stop
}
reload_service() {
restart
}
@@ -7,7 +7,7 @@
}
EEOF
}
chmod +x /etc/init.d/timecontrol /usr/bin/timecontrol*
chmod +x /etc/init.d/timecontrol /usr/bin/timecontrol* /usr/libexec/timecontrol-call
uci -q batch <<-EOF >/dev/null
delete ucitrack.@timecontrol[-1]
add ucitrack timecontrol
@@ -16,5 +16,7 @@ uci -q batch <<-EOF >/dev/null
EOF
[ -s /etc/config/timecontrol ] || echo "config timecontrol" > /etc/config/timecontrol
/etc/init.d/rpcd restart
rm -f /tmp/luci-indexcache
exit 0