mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-11 17:29:16 +05:00
blockcheck: suppress 'which' deprecation
This commit is contained in:
parent
9d90f787ad
commit
d788bd18cc
@ -34,6 +34,10 @@ exists()
|
|||||||
{
|
{
|
||||||
which $1 >/dev/null 2>/dev/null
|
which $1 >/dev/null 2>/dev/null
|
||||||
}
|
}
|
||||||
|
whichq()
|
||||||
|
{
|
||||||
|
which $1 2>/dev/null
|
||||||
|
}
|
||||||
killwait()
|
killwait()
|
||||||
{
|
{
|
||||||
# $1 - signal (-9, -2, ...)
|
# $1 - signal (-9, -2, ...)
|
||||||
@ -818,7 +822,7 @@ ask_params()
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
[ -n "$IP6_DEFRAG_DISABLE" ] && {
|
[ -n "$IP6_DEFRAG_DISABLE" ] && {
|
||||||
local ipexe="$(readlink -f $(which ip6tables))"
|
local ipexe="$(readlink -f $(whichq ip6tables))"
|
||||||
if [ "${ipexe#*nft}" != "$ipexe" ]; then
|
if [ "${ipexe#*nft}" != "$ipexe" ]; then
|
||||||
echo "WARNING ! ipv6 ipfrag tests may have no effect if ip6tables-nft is used. current ip6tables point to : $ipexe"
|
echo "WARNING ! ipv6 ipfrag tests may have no effect if ip6tables-nft is used. current ip6tables point to : $ipexe"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user