[package] firewall: do not check for module availability, let iptables fail if a...
[openwrt/svn-archive/archive.git] / package / firewall / files / lib / fw.sh
index a13eb7eb13ff782faadf07ae5f97701dc135a255..bf7156e8cefebd4499bbc0534d9fb00922e09188 100644 (file)
@@ -74,21 +74,7 @@ fw__exec() { # <action> <family> <table> <chain> <target> <position> { <rules> }
                        fw__rc $(($? & 1))
                        return
                fi
-               local mod
-               eval "mod=\$FW_${fam#G}_${tab}"
-               if [ "$mod" ]; then
-                       fw__rc $mod
-                       return
-               fi
-               case "$fam" in
-                       *4) mod=iptable_${tab} ;;
-                       *6) mod=ip6table_${tab} ;;
-                       *) mod=. ;;
-               esac
-               grep -q "^${mod} " /proc/modules
-               mod=$?
-               export FW_${fam}_${tab}=$mod
-               fw__rc $mod
+               fw__rc 0
        }
 
        fw__err() {