mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
suricata: Fix initscript when using a single core machine
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user