summaryrefslogtreecommitdiff
path: root/package/firewall/files/lib/fw.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-10-22 19:50:35 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-10-22 19:50:35 +0000
commite0e73928da09c2fcc075fa1da22179468ef311f2 (patch)
treed2eba2e2bd8ffff5391545c31912cfd5786ab2cf /package/firewall/files/lib/fw.sh
parentb0d9bccafc87b6b60abb02d3dd6b491314d37038 (diff)
downloadmtk-20170518-e0e73928da09c2fcc075fa1da22179468ef311f2.zip
mtk-20170518-e0e73928da09c2fcc075fa1da22179468ef311f2.tar.gz
mtk-20170518-e0e73928da09c2fcc075fa1da22179468ef311f2.tar.bz2
firewall: do not check for module availability, let iptables fail if a feature is not present (#7610)
SVN-Revision: 28525
Diffstat (limited to 'package/firewall/files/lib/fw.sh')
-rw-r--r--package/firewall/files/lib/fw.sh16
1 files changed, 1 insertions, 15 deletions
diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh
index a13eb7e..bf7156e 100644
--- a/package/firewall/files/lib/fw.sh
+++ b/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() {