mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-31 01:35:13 +08:00
update 2026-10-01 18:39:33
This commit is contained in:
1 parent
7a316664d6
commit
82331a7c2e
4 files changed
+9
-16
No files matched your search
@@ -36,13 +36,6 @@ c=1024; nf=16384
|
||||
[ "$mem" -ge 524288 ] && { c=10000; nf=131072; }
|
||||
[ "$mem" -ge 1048576 ] && { c=10000; nf=262144; }
|
||||
|
||||
if ! grep -q '/etc/firewall.user' /etc/config/firewall 2>/dev/null; then
|
||||
uci -q set firewall.firewall_user=include
|
||||
uci -q set firewall.firewall_user.path='/etc/firewall.user'
|
||||
uci -q set firewall.firewall_user.type='script'
|
||||
uci -q set firewall.firewall_user.reload='1'
|
||||
fi
|
||||
|
||||
# 4. 首次开机参数统一批量预设
|
||||
if [ "$version" -lt 1 ]; then
|
||||
uci -q batch <<-EOF
|
||||
|
||||
Reference in new issue
Block a user