# quick utility to check for internet access
-if timeout 10 ping -q -c 1 -W 1 8.8.8.8 &>/dev/null; then
+if timeout 10 ping -q -c 1 -W 1 8.8.8.8 &>/dev/null || timeout 10 curl -s packages.instantos.io || timeout 5 curl -s cht.sh; then
exit 0
else
echo "internet access is unreliable or not working"