X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/2c88ef6e95997ceaeb2ed8033de3823855f7ad57..570749fed10a9c755bbf34eeb88f9ce8cdbdb0b5:/package/firewall/files/lib/fw.sh?ds=sidebyside diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh index a13eb7eb1..bf7156e8c 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() {