#! /bin/sh

# If ethernet is connected and the ppp connection is lost, then restart the networking service to correct the routes.

CARRIER=$(cat /sys/class/net/eth0/carrier)

if [ $CARRIER -eq 1 ]
 then
 /etc/init.d/networking restart
fi
