#!/bin/tcsh
## --------------------------------------------------
# status of a mount point
# by JC - 03/2002
## --------------------------------------------------

set TEST=`pidof pppd`
#echo $TEST

if ("$TEST" == "") then
  set MSG="Modem is NOT connected"
  set ICON=/home/julien/.fvwm2/icons/48/phone.xpm
else
  set MSG="Modem is connected"
  set ICON=/home/julien/.fvwm2/icons/48/phone-locked.xpm
  echo "pid of pppd $TEST"
endif
Xdialog --under-mouse --icon $ICON --msgbox "$MSG" 9 35
