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-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbc2167fcb4ee560d4cbbab4bbf9bdbe2de260a3;p=people%2Fms%2Fipfire-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 0c60c5119..06ad21afa 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