From a7831b7fe89694d4a9e0ea4b321467a61f9dc154 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 9 Sep 2024 19:37:56 +0200 Subject: [PATCH] suricata: Replace removed CPU count function Signed-off-by: Michael Tremer --- src/initscripts/system/suricata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/initscripts/system/suricata b/src/initscripts/system/suricata index 14b48b5bd..30a81333f 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" -- 2.39.5