suricata: Fix initscript when using a single core machine

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2018-08-24 10:04:33 +02:00
parent 01ba4be48d
commit 5f63067385

View 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))