Browse Source

blockcheck: suppress 'which' deprecation

pull/98/head
bol-van 3 years ago
parent
commit
d788bd18cc
  1. 6
      blockcheck.sh

6
blockcheck.sh

@ -34,6 +34,10 @@ exists()
{
which $1 >/dev/null 2>/dev/null
}
whichq()
{
which $1 2>/dev/null
}
killwait()
{
# $1 - signal (-9, -2, ...)
@ -818,7 +822,7 @@ ask_params()
echo
fi
[ -n "$IP6_DEFRAG_DISABLE" ] && {
local ipexe="$(readlink -f $(which ip6tables))"
local ipexe="$(readlink -f $(whichq ip6tables))"
if [ "${ipexe#*nft}" != "$ipexe" ]; then
echo "WARNING ! ipv6 ipfrag tests may have no effect if ip6tables-nft is used. current ip6tables point to : $ipexe"
else

Loading…
Cancel
Save