[06/20] suricata: Replace removed CPU count function

Message ID 20240910143748.3469271-7-michael.tremer@ipfire.org
State New
Headers
Series [01/20] suricata: Move the IPS into the mangle table |

Commit Message

Michael Tremer Sept. 10, 2024, 2:37 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 src/initscripts/system/suricata | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

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"