#!/bin/bash
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
ping 168.95.1.1 -c 1 > /dev/null 2>&1
if [ $? != 0 ]; then
        adsl-stop
        adsl-start
        service named restart
fi
