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 14:17:49 +0100 |
commit | 72fd0993d8643d7ca52d954d65395585fdf34b03 (patch) | |
tree | 01a12b95e65bcc43965c0b61215e8ad53aa39264 /meta/recipes-bsp | |
parent | 6f0eebbd12d79a86dd4a79f87b6be4758439a3f5 (diff) | |
download | openembedded-core-72fd0993d8643d7ca52d954d65395585fdf34b03.tar.gz openembedded-core-72fd0993d8643d7ca52d954d65395585fdf34b03.tar.bz2 openembedded-core-72fd0993d8643d7ca52d954d65395585fdf34b03.zip |
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.
Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-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." LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" PV = "0.2.0" -PR = "r2" +PR = "r3" SRC_URI = "\ file://asound.conf \ @@ -46,9 +46,9 @@ FILES_alsa-states = "${localstatedir}/lib/alsa/*.state" pkg_postinst_${PN}() { if test -z "$D" then - if test -x /usr/sbin/alsactl + if test -x ${sbindir}/alsactl then - /usr/sbin/alsactl -f ${localstatedir}/lib/alsa/asound.state restore + ${sbindir}/alsactl -f ${localstatedir}/lib/alsa/asound.state restore fi # INITSCRIPT_PARAMS changed, so remove the old and # install the new setting. |