]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
suricata: Replace removed CPU count function
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Sep 2024 17:37:56 +0000 (19:37 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Sep 2024 08:42:19 +0000 (08:42 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/suricata

index 14b48b5bdbb1d91f8b18c43afd58b96dcd3831e1..30a81333f3d117cdd07c191f4a36ce2f465564af 100644 (file)
@@ -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"