From: Michael Tremer Date: Mon, 9 Sep 2024 09:55:34 +0000 (+0200) Subject: suricata: Use getconf to determine the number of processors X-Git-Tag: v2.29-core189~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50d987cc2194945be50030fde179e293f692135d;p=ipfire-2.x.git suricata: Use getconf to determine the number of processors Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/system/suricata b/src/initscripts/system/suricata index 0c60c51198..06ad21afa4 100644 --- a/src/initscripts/system/suricata +++ b/src/initscripts/system/suricata @@ -51,24 +51,6 @@ enabled_ips_zones=() # PID file of suricata. PID_FILE="/var/run/suricata.pid" -# Function to get the amount of CPU cores of the system. -get_cpu_count() { - CPUCOUNT=0 - - # Loop through "/proc/cpuinfo" and count the amount of CPU cores. - while read line; do - [ "$line" ] && [ -z "${line%processor*}" ] && ((CPUCOUNT++)) - done