When testing if network is available, dump ip addr/route to help with debugging.
This commit is contained in:
parent
4737386fd1
commit
95151f84a2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user