date >> /var/log/neo.log

ping 194.204.159.1 -c1 -w5 | grep 'icmp_seq' >/dev/null
let wynik=$?
if [ $wynik -eq 0 ]; then
echo ok >> /var/log/neo.log
else
echo Nie ma polaczenia z internetem - probujemy nawiazac >> /var/log/neo.log
/usr/sbin/adsl-stop >> /var/log/neo.log
/usr/sbin/adsl-start >> /var/log/neo.log
fi