This bug should be retitled to "doesn't work with Linux Kernel >= 3.0". 
The bug still exists in the latest version, I've just opened a bug upstream:

https://sourceforge.net/tracker/index.php?func=detail&aid=3425889&group_id=403&atid=100403

The problem is that there's code wanting to check if the kernel is >= 2.3, but 
the code is:

if [ -n "$(uname -r | awk -F. ' $1 == 2 && $2 > 2 {print}')" ]; then

so the check fails for version 3.*...

Here's a patch fixing it:

--- bastille-firewall   2005-04-06 00:18:11.000000000 +0100
+++ bastille-firewall-new       2011-10-19 12:33:30.000000000 +0100
@@ -64,7 +64,7 @@
   exit 1
 fi
 
-if [ -n "$(uname -r | awk -F. ' $1 == 2 && $2 > 2 {print}')" ]; then
+if [ -n "$(uname -r | awk -F. ' $1$2 > 22 {print}')" ]; then
        # We are using Linux 2.3 or newer; use the netfilter script if 
available
        if [ -x /sbin/bastille-netfilter ]; then
                REALSCRIPT=/sbin/bastille-netfilter

Best regards,
-- 
Marcos Marado



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to