do not display error messages from which
This commit is contained in:
parent
ec88385487
commit
c526a31504
@ -13,19 +13,19 @@ urls="$urls http://www.badips.com/get/list/ssh/2"
|
|||||||
|
|
||||||
blocklist_chain_name=blocklists
|
blocklist_chain_name=blocklists
|
||||||
|
|
||||||
if [ -z "$(which ipset)" ]; then
|
if [ -z "$(which ipset 2>/dev/null)" ]; then
|
||||||
echo "Cannot find ipset"
|
echo "Cannot find ipset"
|
||||||
echo "Run \"apt-get install ipset\" or \"yum install ipset\""
|
echo "Run \"apt-get install ipset\" or \"yum install ipset\""
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$(which curl)" ]; then
|
if [ -z "$(which curl 2>/dev/null)" ]; then
|
||||||
echo "Cannot find curl"
|
echo "Cannot find curl"
|
||||||
echo "Run \"apt-get install curl\" or \"yum install curl\""
|
echo "Run \"apt-get install curl\" or \"yum install curl\""
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(which uci)" ]; then
|
if [ "$(which uci 2>/dev/null)" ]; then
|
||||||
# we're on OpenWRT
|
# we're on OpenWRT
|
||||||
wan_iface=$(uci get network.wan.ifname)
|
wan_iface=$(uci get network.wan.ifname)
|
||||||
IN_OPT="-i $wan_iface"
|
IN_OPT="-i $wan_iface"
|
||||||
|
Loading…
Reference in New Issue
Block a user