#!/bin/sh
CURRENTOFF=/etc/ppp/current-disconnect
ISP=`cat "$CURRENTOFF"`

# how to disconnect
case "$ISP" in
	myisp)
		kill -HUP `cat /var/run/ppp0.pid`
		;;
	otherisp)
		killall wvdial
		;;
	*)
		echo "$0: Unknown ISP in $CURRENTOFF: $ISP"
		;;
esac
