if [ "x$D" != "x" ] ; then
        exit 1
    fi

    # create the pub directory
    mkdir -p /home/ftp/pub/
    chown -R ftp:ftp /home/ftp/pub
if type update-rc.d >/dev/null 2>/dev/null; then
	if [ -n "$D" ]; then
		OPT="-r $D"
	else
		OPT="-s"
	fi
	update-rc.d $OPT proftpd defaults
fi
