Ver código fonte

firewall: do not check for module availability, let iptables fail if a feature is not present (#7610)

SVN-Revision: 28525
Jo-Philipp Wich 14 anos atrás
pai
commit
e0e73928da
2 arquivos alterados com 2 adições e 16 exclusões
  1. 1 1
      package/firewall/Makefile
  2. 1 15
      package/firewall/files/lib/fw.sh

+ 1 - 1
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
 

+ 1 - 15
package/firewall/files/lib/fw.sh

@@ -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() {