1
0
Fork 0
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:
Ycarus 2018-06-08 21:24:00 +02:00
parent 5e05415e4e
commit 5f85796dcd
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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