2017-07-30 20:19:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-07-30 20:51:32 +00:00
|
|
|
ping -c 1 archlinux.org 2>/tmp/arch-maride-flavour_checks_internet_error.log 1>/tmp/arch-maride-flavour_checks_internet_out.log
|
2017-07-30 20:19:24 +00:00
|
|
|
return=$?
|
|
|
|
|
|
|
|
if [ "$return" -eq 0 ]; then
|
2017-08-31 14:27:55 +00:00
|
|
|
amf_return=0
|
2017-07-30 20:19:24 +00:00
|
|
|
else
|
|
|
|
echo "~> Either internet is unavailable or archlinux.org is down..."
|
|
|
|
echo "~> (ping returned $return. Maybe check the logs in /tmp."
|
2017-08-31 14:27:55 +00:00
|
|
|
amf_return=1
|
2017-07-30 20:19:24 +00:00
|
|
|
fi
|