#! /bin/sh
# Simple connect / disconnect script for ppp
# written by Jeffry Johnston, 2004
TITLE="Dial-up Connection"
ICON=/usr/share/icons/hicolor/48x48/apps/modem.png
ps ax | grep [/]pppd > /dev/null
if [ $? == 0 ] ; then
   zenity --question --text="Disconnect?" --title="$TITLE" --window-icon=$ICON
   if [ $? == 0 ] ; then
       poff
   fi
else
   zenity --question --text="Connect?" --title="$TITLE" --window-icon=$ICON
   if [ $? == 0 ] ; then
       pon bite-biz
   fi
fi
