#!/bin/sh -e
. /usr/share/debconf/confmodule

# If ppp was started, ask if they want it stopped now, and act on result.
db_get base-config/use-ppp
if [ "$RET" = true ]; then
	db_fset isdefault base-config/stop-ppp true
	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
