]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
suricata: Fix initscript when using a single core machine
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 24 Aug 2018 08:04:33 +0000 (10:04 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 24 Aug 2018 08:04:33 +0000 (10:04 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/initscripts/system/suricata

index 57eeec1575e475b8636061fa3ff74a20f8a24cbc..93c2636f360dfe285c2487c73537a8405c05321c 100644 (file)
@@ -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))