mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
Change some defaults settings
This commit is contained in:
parent
5e05415e4e
commit
5f85796dcd
2 changed files with 8 additions and 1 deletions
|
@ -6,6 +6,13 @@ if [ "$(uci -q get unbound.@unbound[0].listen_port | grep 5353)" = "" ]; then
|
|||
set unbound.@unbound[-1].protocol="ip4_only"
|
||||
set unbound.@unbound[-1].enabled=1
|
||||
set unbound.@unbound[-1].recursion="aggressive"
|
||||
set unbound.@unbound[-1].prefetch_root=1
|
||||
commit unbound
|
||||
EOF
|
||||
fi
|
||||
if [ "$(uci -q get unbound.@unbound[0].prefetch_root)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set unbound.@unbound[-1].prefetch_root=1
|
||||
commit unbound
|
||||
EOF
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# local sysctl settings can be stored in this directory
|
||||
# max open files
|
||||
#fs.file-max = 512000
|
||||
fs.file-max = 512000
|
||||
# max read buffer
|
||||
net.core.rmem_max = 134217728
|
||||
# max write buffer
|
||||
|
|
Loading…
Reference in a new issue