[OE-core] [PATCH 02/30] alsa-state: use ${sbindir} instead of /usr/sbin for packaging
Javier Martinez Canillas
javier at dowhile0.org
Sun Aug 5 15:53:49 UTC 2012
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 at dowhile0.org>
---
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
More information about the Openembedded-core
mailing list