#!/bin/sh -e

. /usr/share/debconf/confmodule

db_get espeakup/voice
VOICE=$RET
[ -n "$VOICE" ] || exit 0

apt-install espeakup alsa-utils || true

cp /usr/share/espeakup-udeb/espeakup.default /target/etc/default/espeakup
sed -i -e "s/^VOICE=.*/VOICE=$VOICE/" /target/etc/default/espeakup
