diff options
author | Javier Martinez Canillas <javier@dowhile0.org> | 2012-08-05 21:48:30 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-06 15:18:47 +0100 |
commit | 9d27075bd8e547126fcbad8a2389aa0c130f7051 (patch) | |
tree | 18310fd48749c601be24cf835bcca8f6d6471d2a | |
parent | bfa808e3b601a4b76631f4097bbaf09162b4247d (diff) | |
download | poky-9d27075bd8e547126fcbad8a2389aa0c130f7051.tar.gz |
alsa-state: use ${sbindir} instead of /usr/sbin for packaging
It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.
(From OE-Core rev: 72fd0993d8643d7ca52d954d65395585fdf34b03)
Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-bsp/alsa-state/alsa-state.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-bsp/alsa-state/alsa-state.bb b/meta/recipes-bsp/alsa-state/alsa-state.bb index 83c9faadb1..a9cc04c2a8 100644 --- a/meta/recipes-bsp/alsa-state/alsa-state.bb +++ b/meta/recipes-bsp/alsa-state/alsa-state.bb | |||
@@ -10,7 +10,7 @@ sound state at system boot and save it at system shut down." | |||
10 | LICENSE = "MIT" | 10 | LICENSE = "MIT" |
11 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 11 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
12 | PV = "0.2.0" | 12 | PV = "0.2.0" |
13 | PR = "r2" | 13 | PR = "r3" |
14 | 14 | ||
15 | SRC_URI = "\ | 15 | SRC_URI = "\ |
16 | file://asound.conf \ | 16 | file://asound.conf \ |
@@ -46,9 +46,9 @@ FILES_alsa-states = "${localstatedir}/lib/alsa/*.state" | |||
46 | pkg_postinst_${PN}() { | 46 | pkg_postinst_${PN}() { |
47 | if test -z "$D" | 47 | if test -z "$D" |
48 | then | 48 | then |
49 | if test -x /usr/sbin/alsactl | 49 | if test -x ${sbindir}/alsactl |
50 | then | 50 | then |
51 | /usr/sbin/alsactl -f ${localstatedir}/lib/alsa/asound.state restore | 51 | ${sbindir}/alsactl -f ${localstatedir}/lib/alsa/asound.state restore |
52 | fi | 52 | fi |
53 | # INITSCRIPT_PARAMS changed, so remove the old and | 53 | # INITSCRIPT_PARAMS changed, so remove the old and |
54 | # install the new setting. | 54 | # install the new setting. |