File: alsa-source.config

package info (click to toggle)
alsa-driver 1.0.13-5etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 20,108 kB
  • ctags: 50,477
  • sloc: ansic: 319,881; sh: 32,930; makefile: 2,015; python: 1,527; perl: 1,316; xml: 896; awk: 66
file content (40 lines) | stat: -rw-r--r-- 1,345 bytes parent folder | download | duplicates (4)
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
#!/bin/sh

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

db_metaget alsa-source/cards choices || :
db_subst alsa-source/cards_to_be_built alsa_cards "$RET"

db_metaget alsa-source/cards_with_descriptions choices || :
db_subst alsa-source/cards_to_be_built alsa_cards_with_descriptions "$RET"

if [ -f /etc/alsa/alsa-source.conf ] ; then
	case "$(sed -n -e 's/^[[:space:]]*ALSA_NOPNP[[:space:]]*=[[:space:]]*"\(.*\)"/\1/p' /etc/alsa/alsa-source.conf)" in
		y|Y|yes|YES|Yes) db_set alsa-source/has_pnp "false" || : ;;
		*) db_set alsa-source/has_pnp "true"  || : ;;
	esac
	case "$(sed -n -e 's/^[[:space:]]*ALSA_DEBUG[[:space:]]*=[[:space:]]*"\(.*\)"/\1/p' /etc/alsa/alsa-source.conf)" in
		y|Y|yes|YES|Yes) db_set alsa-source/debug "true"  || : ;;
		*) db_set alsa-source/debug "false" || : ;;
	esac
	db_set alsa-source/cards_to_be_built "$(sed -n -e 's/^[[:space:]]*ALSA_CARDS[[:space:]]*=[[:space:]]*"\(.*\)"/\1/p' /etc/alsa/alsa-source.conf)" || :
fi

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 || :