When testing if network is available, dump ip addr/route to help with debugging.

This commit is contained in:
Richard W.M. Jones 2014-10-02 20:53:11 +01:00
parent 4737386fd1
commit 95151f84a2

View File

@ -741,6 +741,8 @@ sed 's/@VERSION@/%{version}/g' < %{SOURCE4} > README
%build %build
# Test if network is available. # Test if network is available.
ip addr list ||:
ip route list ||:
if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then if ping -c 3 -w 20 8.8.8.8 && wget http://libguestfs.org -O /dev/null; then
extra= extra=
else else