From: Michael Tremer Date: Mon, 9 Sep 2024 17:37:56 +0000 (+0200) Subject: suricata: Replace removed CPU count function X-Git-Tag: v2.29-core189~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=54a58a2891910ece5174ec8f20504ae2f80841e2;p=ipfire-2.x.git suricata: Replace removed CPU count function Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/system/suricata b/src/initscripts/system/suricata index 14b48b5bdb..30a81333f3 100644 --- a/src/initscripts/system/suricata +++ b/src/initscripts/system/suricata @@ -103,8 +103,8 @@ generate_fw_rules() { case "$1" in start) - # Get amount of CPU cores. - cpu_count=$(get_cpu_count) + # Get amount of CPU cores + cpu_count="$(getconf _NPROCESSORS_ONLN)" # Numer of NFQUES. NFQUEUES="-q 0"