#!/bin/sh
# Script run by cron to monitor connection.
# (not activated)
#
# Robin Stridh <robin.stridh@acte.se>

# Send 1 package, wait for 10s then restore connection
ping -c1 -w10 -q > /dev/null
[ $? -eq 0 ] || pon && poff
