#!/bin/sh
  
  #
  
  ## ppp-on -- start a PPP session, with any other necessary actions
  
  
  # exit status
  
  sts=0
  
  
  # connection device and speed
  
  pppdev=/dev/modem
  
  pppspd=38400
  
  
  # this is the command we use to start the ppp daemon
  
  pppcmd=“pppd $pppdev $pppspd”
  
  
  if $pppcmd; then
  
  echo “ppp connected.”
  
  else
  
  echo “error: ppp not connected.”
  
  sts=1
  
  fi
  
  
  exit $sts