]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/system/suricata
Suricata: Update to 5.0.1
[people/pmueller/ipfire-2.x.git] / src / initscripts / system / suricata
index 5dc4082623c162055bc80c9a082a66714d3e3fe5..29e58a7e290b044e7217f8edca8baeebecc34e15 100644 (file)
@@ -6,7 +6,7 @@
 #
 # Author      : Stefan Schantl <stefan.schantl@ipfire.org>
 #
-# Version     : 01.02
+# Version     : 01.03
 #
 # Notes       :
 #
@@ -159,11 +159,11 @@ case "$1" in
                cpu_count=$(get_cpu_count)
 
                # Numer of NFQUES.
-               NFQUEUES=
+               NFQUEUES="-q 0"
 
-               for i in $(seq 0 $((cpu_count-1)) ); do
-                       NFQUEUES+="-q $i "
-               done
+               if [ $cpu_count -gt "1" ]; then
+                       NFQUEUES+=":$(($cpu_count-1))"
+               fi
 
                # Check if the IDS should be started.
                if [ "$ENABLE_IDS" == "on" ]; then