Commit b3771d7e authored by Pekka Pessi's avatar Pekka Pessi

run_test_sresolv: check for BIND 9 before doing anything else

parent 6589b7d7
......@@ -36,6 +36,14 @@ test x$s = x. && s=`pwd`
PATH=/usr/sbin:/usr/local/sbin:/sbin:$PATH
export PATH
# No BIND 9, no fun
{ type named >/dev/null &&
named -v | grep BIND.*9 > /dev/null
} || {
echo test_sresolv: there is no BIND 9 named in your path, skipping
exit 77
}
# Test for support for IPv6 on Linux. This probably fails on everything else.
ipv6='sysctl net.ipv6.conf.default.mtu >/dev/null 2>&1'
# Bind not working with IPv6 on RHEL 4:
......@@ -55,14 +63,6 @@ if netstat --ip >/dev/null 2>&1 ; then
done
fi
# No BIND 9, no fun
{ type named >/dev/null &&
named -v | grep BIND.*9 > /dev/null
} || {
echo test_sresolv: there is no BIND 9 named in you path, skipping
exit 77
}
if eval $ipv6
then
# Figure out nice IPv6 address for us
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment