diff options
| author | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-08-09 08:41:19 +0000 |
|---|---|---|
| committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2007-08-09 08:41:19 +0000 |
| commit | 9d829ed05c295df608b4fc108eb1c628fd06fd39 (patch) | |
| tree | c1b27cfe4498f8abef1a61325922906f3e6a32ff /packages/alsa/alsa-state.bb | |
| parent | 1434b204e16e87b7f59f074f3036d5dcbcf0116f (diff) | |
| parent | 6ccac10beeaaa02a86081bd6179fd57c208ad6b1 (diff) | |
merge of '76e1e69496801009ea0aa69c84f76e858978ab99'
and 'db976a98427dd6a195e2cf167e225de2d0206aea'
Diffstat (limited to 'packages/alsa/alsa-state.bb')
| -rw-r--r-- | packages/alsa/alsa-state.bb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/packages/alsa/alsa-state.bb b/packages/alsa/alsa-state.bb new file mode 100644 index 0000000000..35c8f5d3d3 --- /dev/null +++ b/packages/alsa/alsa-state.bb @@ -0,0 +1,54 @@ +#! /bin/sh +# +# Copyright Matthias Hentges <devel@hentges.net> (c) 2007 +# License: MIT (see http://www.opensource.org/licenses/mit-license.php +# for a copy of the license) +# +# Filename: alsa-state.bb +# Date: 20070308 (YMD) + +DESCRIPTION = "Default ALSA configuration" +LICENSE = "GPL" +RRECOMMENDS_alsa-state = "alsa-states" +PV = "0.0.4" +PR = "r2" + +SRC_URI = "file://asound.state \ + file://alsa-state " + +SRC_URI_append_fic-gta01 = " \ + file://capturehandset.state \ + file://captureheadset.state \ + file://gsmbluetooth.state \ + file://gsmhandset.state \ + file://gsmheadset.state \ + file://stereoout.state" + +inherit update-rc.d + +INITSCRIPT_NAME = "alsa-state" +INITSCRIPT_PARAMS = "defaults 10" + +do_install() { + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/alsa-state ${D}${sysconfdir}/init.d + + install -m 0644 ${WORKDIR}/*.state ${D}${sysconfdir} +} + +PACKAGES += "alsa-states" +FILES_${PN} = "${sysconfdir}/init.d" +FILES_alsa-states = "${sysconfdir}/*.state" +PACKAGE_ARCH_${PN} = "all" +PACKAGE_ARCH_alsa-states = "${MACHINE}" + +pkg_postinst_${PN}() { + if test -z "$D" + then + if test -x /usr/sbin/alsactl + then + /usr/sbin/alsactl -f ${sysconfdir}/asound.state restore + fi + fi +} + |
