#! /bin/sh

# If ethernet is not connected, then remove default gw so that ppp0 can set itself as the default gw

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

if [ $CARRIER -eq 0 ]
 then
 /sbin/route del default
fi
