#
# Configure Dialup PPP
#
if [ ! -f /etc/dp.conf ] ; then
    exit 0
fi
. /etc/dp.conf
case "$1" in
 'start')
    if [ -f $DPCONF_DIR/hostnames ] ; then
	#
	# Configure DP interfaces
	#
	/etc/dpctl -c
	#
	# Start the Dialup PPP Daemon (dpd)
	#
	/etc/dpctl -s
    fi
    ;;
 'stop')
    #
    # Kill dpd, but leave the drivers loaded
    #
    /etc/dpctl -k
    ;;
esac
exit 0
