From 5f85796dcdb211176103c02da54662aae14398d0 Mon Sep 17 00:00:00 2001 From: Ycarus Date: Fri, 8 Jun 2018 21:24:00 +0200 Subject: [PATCH] Change some defaults settings --- openmptcprouter/files/etc/uci-defaults/1940-omr-dns | 7 +++++++ shadowsocks-libev/files/shadowsocks.conf | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns index db7d4e345..7f42aeeba 100755 --- a/openmptcprouter/files/etc/uci-defaults/1940-omr-dns +++ b/openmptcprouter/files/etc/uci-defaults/1940-omr-dns @@ -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 diff --git a/shadowsocks-libev/files/shadowsocks.conf b/shadowsocks-libev/files/shadowsocks.conf index 28421146e..4e9a29dad 100644 --- a/shadowsocks-libev/files/shadowsocks.conf +++ b/shadowsocks-libev/files/shadowsocks.conf @@ -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