#!/bin/sh -e
# If ppp was turned on for the install, ask if it can be turned off now.
. /usr/share/debconf/confmodule

db_title 'Debian System Configuration'

db_get base-config/use-ppp
if [ "$RET" = true -a -e /usr/bin/poff ]; then
	db_fset base-config/stop-ppp seen false
	db_input medium base-config/stop-ppp || true
	db_go || true
	db_get base-config/stop-ppp
	if [ "$RET" = true ]; then
		poff || true
	fi
fi
