mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-03 21:03:56 +08:00
update 2026-10-29 11:59:06
This commit is contained in:
1 parent
bc85557d34
commit
e2f86e09f4
5033 files changed
-2043160
No files matched your search
@@ -1,19 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete firewall.luci_app_timecontrol
|
||||
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
|
||||
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
|
||||
Reference in new issue
Block a user