File: alsa-source.config

package info (click to toggle)
alsa-driver 1.0.8-7sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 15,840 kB
  • ctags: 43,253
  • sloc: ansic: 257,429; sh: 18,021; makefile: 1,741; perl: 1,316; python: 1,280; xml: 448; awk: 66
file content (43 lines) | stat: -rw-r--r-- 1,274 bytes parent folder | download
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