It is considered good practice to use the build system provided
variables instead of directly specify hardcoded paths.

Signed-off-by: Javier Martinez Canillas <[email protected]>
---
 meta/recipes-bsp/alsa-state/alsa-state.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-bsp/alsa-state/alsa-state.bb 
b/meta/recipes-bsp/alsa-state/alsa-state.bb
index 83c9faa..e2eb4fe 100644
--- a/meta/recipes-bsp/alsa-state/alsa-state.bb
+++ b/meta/recipes-bsp/alsa-state/alsa-state.bb
@@ -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.
-- 
1.7.7.6


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to