diff --git a/blockcheck.sh b/blockcheck.sh index 1db140c..45c8936 100755 --- a/blockcheck.sh +++ b/blockcheck.sh @@ -117,7 +117,7 @@ IPFW_DEL() } ipt6_has_raw() { - grep -Fq raw /proc/net/ip6_tables_names + grep -xFq raw /proc/net/ip6_tables_names } @@ -176,7 +176,7 @@ check_prerequisites() case "$UNAME" in Linux) progs="$progs iptables ip6tables" - ! grep -Fq NFQUEUE /proc/net/ip_tables_targets || ! grep -Fq NFQUEUE /proc/net/ip6_tables_targets && { + ! grep -xFq NFQUEUE /proc/net/ip_tables_targets || ! grep -xFq NFQUEUE /proc/net/ip6_tables_targets && { echo NFQUEUE iptables or ip6tables target is missing. pls install modules. [ "$SUBSYS" = openwrt ] && echo 'OpenWRT : opkg update ; opkg install iptables-mod-nfqueue' exitp 6