From: Jo-Philipp Wich Date: Sat, 22 Oct 2011 19:50:35 +0000 (+0000) Subject: firewall: do not check for module availability, let iptables fail if a feature is... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e0e73928da09c2fcc075fa1da22179468ef311f2;p=openwrt%2Fstaging%2Fdangole.git firewall: do not check for module availability, let iptables fail if a feature is not present (#7610) SVN-Revision: 28525 --- diff --git a/package/firewall/Makefile b/package/firewall/Makefile index 597a37e140..749f04a4b1 100644 --- a/package/firewall/Makefile +++ b/package/firewall/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=firewall PKG_VERSION:=2 -PKG_RELEASE:=35 +PKG_RELEASE:=36 include $(INCLUDE_DIR)/package.mk diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh index a13eb7eb13..bf7156e8ce 100644 --- a/package/firewall/files/lib/fw.sh +++ b/package/firewall/files/lib/fw.sh @@ -74,21 +74,7 @@ fw__exec() { # { } 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() {