From patchwork Sun Aug 5 15:53:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [02/30] alsa-state: use ${sbindir} instead of /usr/sbin for packaging Date: Sun, 05 Aug 2012 15:53:49 -0000 From: Javier Martinez Canillas X-Patchwork-Id: 33899 Message-Id: <1344182057-15981-3-git-send-email-javier@dowhile0.org> To: Richard Purdie Cc: openembedded-core@lists.openembedded.org It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas --- 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.