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

SVN-Revision: 28525
This commit is contained in:
Jo-Philipp Wich 2011-10-22 19:50:35 +00:00
parent b0d9bccafc
commit e0e73928da
2 changed files with 2 additions and 16 deletions

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=firewall PKG_NAME:=firewall
PKG_VERSION:=2 PKG_VERSION:=2
PKG_RELEASE:=35 PKG_RELEASE:=36
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk

View file

@ -74,21 +74,7 @@ fw__exec() { # <action> <family> <table> <chain> <target> <position> { <rules> }
fw__rc $(($? & 1)) fw__rc $(($? & 1))
return return
fi fi
local mod fw__rc 0
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__err() { fw__err() {