#!/bin/sh

SERVICE="pppd"

if [ "$(pidof $SERVICE)" ]
then
  echo " PPPD is running. Trying to stop ... "
  else
  /etc/ppp/modemdial start
fi