#!/bin/sh
tac /etc/ppp/connect-errors | grep '['CONNECT'|'CARRIER']' | head -1
