#!/bin/sh -e

# Drag in debconf stuff.
. /usr/share/debconf/confmodule

if [ -f /etc/xringd.conf ]; then
	MODDEV=`grep -E '^-m ' /etc/xringd.conf | cut -d\  -f2`
fi

if [ -f /etc/xringd.conf -a ! -z "$MODDEV" ]; then
	db_set xringd/modem-device $MODDEV
fi

db_input medium xringd/modem-device || true
db_go

