X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Finitscripts%2Fsystem%2Fsuricata;fp=src%2Finitscripts%2Fsystem%2Fsuricata;h=29e58a7e290b044e7217f8edca8baeebecc34e15;hb=1a65ea1b7291337e6de44a2d4696a00bbf23f7db;hp=5dc4082623c162055bc80c9a082a66714d3e3fe5;hpb=ee9bc7c477408e6cabe79e56549355712caae97a;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/src/initscripts/system/suricata b/src/initscripts/system/suricata index 5dc4082623..29e58a7e29 100644 --- a/src/initscripts/system/suricata +++ b/src/initscripts/system/suricata @@ -6,7 +6,7 @@ # # Author : Stefan Schantl # -# 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