| Submitter | Javier Martinez Canillas |
|---|---|
| Date | Aug. 5, 2012, 3:53 p.m. |
| Message ID | <1344182057-15981-3-git-send-email-javier@dowhile0.org> |
| Download | mbox | patch |
| Permalink | /patch/33899/ |
| State | New |
| Headers | show |
Comments
Patch
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.
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> --- meta/recipes-bsp/alsa-state/alsa-state.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)