1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#!/bin/bash
# Bash required because /usr/share/debconf/confmodule uses "local" (#252094)
set -e
. /usr/share/debconf/confmodule
db_version 2.0
db_capb multiselect
if [ -f /etc/alsa-source.conf ]; then
if [ -f /etc/alsa/alsa-source.conf ]; then
mv -f /etc/alsa-source.conf /etc/alsa-source.conf.dpkg-old
else
mv -f /etc/alsa-source.conf /etc/alsa/alsa-source.conf
fi
fi
if [ -f /etc/alsa/alsa-source.conf ] ; then
eval "$(grep -E 'ALSA_NOPNP="(y|Y|yes|YES|Yes|n|N|no|NO|No)?"' /etc/alsa/alsa-source.conf)"
case "$ALSA_NOPNP" in
y|Y|yes|YES|Yes) db_set alsa-source/has_pnp "false" || : ;;
*) db_set alsa-source/has_pnp "true" || : ;;
esac
eval "$(grep -E 'ALSA_DEBUG="(y|Y|yes|YES|Yes|n|N|no|NO|No)?"' /etc/alsa/alsa-source.conf)"
case "$ALSA_DEBUG" in
y|Y|yes|YES|Yes) db_set alsa-source/debug "true" || : ;;
*) db_set alsa-source/debug "false" || : ;;
esac
fi
db_metaget alsa-source/cards choices || :
db_subst alsa-source/cards_to_be_built alsa_cards "$RET"
# FIXME: We should initialise alsa-source/cards_to_be_built on the basis of
# the value of ALSA_CARDS in /etc/alsa/alsa-source.conf (Bug #290946)
db_input low alsa-source/has_pnp || :
db_input low alsa-source/debug || :
db_input low alsa-source/cards_to_be_built || :
db_go
db_stop
|