From 5f630673850f01e4e1284d163a80772b2f7a46af Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 24 Aug 2018 10:04:33 +0200 Subject: [PATCH] suricata: Fix initscript when using a single core machine Signed-off-by: Stefan Schantl --- src/initscripts/system/suricata | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/initscripts/system/suricata b/src/initscripts/system/suricata index 57eeec1575..93c2636f36 100644 --- a/src/initscripts/system/suricata +++ b/src/initscripts/system/suricata @@ -65,7 +65,7 @@ case "$1" in NFQ_OPTIONS=$NFQ_OPTS # Check if there are multiple cpu cores available. - if [ "$CPUCOUNT" > 0 ]; then + if [ "$CPUCOUNT" -gt "1" ]; then # Balance beetween all queues. NFQ_OPTIONS+="--queue-balance 0:" NFQ_OPTIONS+=$(($CPUCOUNT-1)) -- 2.39.5