From 6f2408ff0b24b102a26ceea7ddbb74ddd0eca379 Mon Sep 17 00:00:00 2001 From: Summer Date: Sat, 29 Jul 2023 23:28:02 +0800 Subject: [PATCH] Update docker configs --- docker/patches/99-custom.conf | 4 +- docker/patches/cpustat | 8 +-- docker/patches/index.html.patches/index.htm | 53 ++----------------- .../patches/index.html.patches/index.htm.orig | 45 +--------------- .../luci-admin-status-index-html.patch | 8 +-- 5 files changed, 16 insertions(+), 102 deletions(-) diff --git a/docker/patches/99-custom.conf b/docker/patches/99-custom.conf index d2a1d759aa..4a68e0d7f6 100644 --- a/docker/patches/99-custom.conf +++ b/docker/patches/99-custom.conf @@ -36,10 +36,10 @@ net.core.netdev_budget = 600 net.core.dev_weight = 128 # default value: 65535 -net.netfilter.nf_conntrack_max = 65535 +net.netfilter.nf_conntrack_max = 327680 # default value: 16384 -net.netfilter.nf_conntrack_buckets = 32768 +net.netfilter.nf_conntrack_buckets = 81920 # ####################################################### diff --git a/docker/patches/cpustat b/docker/patches/cpustat index 32dadaf426..16bb7194be 100644 --- a/docker/patches/cpustat +++ b/docker/patches/cpustat @@ -236,11 +236,11 @@ sub get_eth_temperature { sub get_ethlist() { my $board = &get_boardinfo; if($board eq "FastRhino R66S") { - return reverse sort (); + return reverse sort (); } elsif($board eq "HINLINK OPC-H68K Board") { - return reverse sort (); - } elsif($board eq "Radxa E25") { - return reverse sort (); + return reverse sort (); + } elsif($board eq "HINLINK OWL H88K-V3 Board") { + return reverse sort (); } else { return sort (); } diff --git a/docker/patches/index.html.patches/index.htm b/docker/patches/index.html.patches/index.htm index 56b138306c..5079a960bf 100644 --- a/docker/patches/index.html.patches/index.htm +++ b/docker/patches/index.html.patches/index.htm @@ -56,9 +56,9 @@ local user_info = luci.sys.exec("cat /proc/net/arp | grep -E 'br-lan|eth0' | grep '0x2' | wc -l") local cpu_usage = (luci.sys.exec("expr 100 - $(top -n 1 | grep 'CPU:' | awk -F '%' '{print$4}' | awk -F ' ' '{print$2}')") or "6") .. "%" - local cpu_stat = luci.sys.exec("/usr/bin/cpustat") or { } - local eth_info = luci.sys.exec("/usr/bin/cpustat -e") - local eth_cnt = luci.sys.exec("/usr/bin/cpustat -ec") + local cpu_stat = luci.sys.exec("/usr/bin/cpustat 2>/dev/null") or { } + local eth_info = luci.sys.exec("/usr/bin/cpustat -e 2>/dev/null") + local eth_cnt = luci.sys.exec("/usr/bin/cpustat -ec 2>/dev/null") local rv = { cpuusage = cpu_usage, @@ -128,7 +128,7 @@ <%+header%> - + +