#!/bin/bash

((ping -w5 -c1 8.8.8.8 || ping -w5 -c1 4.2.2.1) > /dev/null 2>&1) && echo "up" || (echo "down" && exit 1)
