update 2026-09-25 06:56:42

This commit is contained in:
action committed 2026-09-25 06:56:42 +08:00
1 parent 45632307c8
commit 6ef6eec405
218 files changed
+45422 -299

No files matched your search

@@ -81,6 +81,7 @@ start(){
iptables_w -t nat -I TIMECONTROL -i $interface -j TIMECONTROL_RULES
iptables_w -t nat -I PREROUTING -j TIMECONTROL
echo "/etc/init.d/${CONFIG} restart" > "/var/etc/${CONFIG}.include"
echo "exit 0" >> "/var/etc/${CONFIG}.include"
}
stop(){
@@ -5,8 +5,15 @@ uci -q batch <<-EOF >/dev/null
set firewall.luci_app_timecontrol=include
set firewall.luci_app_timecontrol.type=script
set firewall.luci_app_timecontrol.path=/var/etc/luci-app-timecontrol.include
set firewall.luci_app_timecontrol.reload=1
EOF
if [ -x "/sbin/fw3" ] && [ ! -L "/sbin/fw3" ]; then
uci -q set firewall.luci_app_timecontrol.reload='1'
else
uci -q delete firewall.luci_app_timecontrol.reload
uci -q delete firewall.luci_app_timecontrol.fw4_compatible
fi
uci commit firewall
rm -rf /tmp/luci-*cache
exit 0