diff --git a/Makefile.am b/Makefile.am index e3e74c9..a51836a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,4 +36,8 @@ maintainer-clean-local: check: ./bgpq4 -v @echo - ./bgpq4 -6 AS15562:AS-SNIJDERS | grep 2001:67c:208c:: + -@if [ -s /etc/resolv.conf ]; then \ + ./bgpq4 -6 AS15562:AS-SNIJDERS | grep 2001:67c:208c::; \ + else \ + echo "No or empty /etc/resolv.conf, skipping online test"; \ + fi