[oe-commits] John Lee : alsa-state.bb: fix wrong usage of update-rc.d.bbclass
GIT User account
git at amethyst.openembedded.net
Wed Dec 17 12:56:44 UTC 2008
Module: openembedded.git
Branch: john_lee/openmoko-merges
Commit: bc71c24a51e3dccdb28ecac0d08880ae208c583e
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=bc71c24a51e3dccdb28ecac0d08880ae208c583e
Author: John Lee <john_lee at openmoko.com>
Date: Tue Nov 25 03:52:09 2008 +0800
alsa-state.bb: fix wrong usage of update-rc.d.bbclass
Should use override ${PN} first
---
packages/alsa/alsa-state.bb | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/packages/alsa/alsa-state.bb b/packages/alsa/alsa-state.bb
index c84964c..2a5cfec 100644
--- a/packages/alsa/alsa-state.bb
+++ b/packages/alsa/alsa-state.bb
@@ -54,14 +54,14 @@ pkg_postinst_${PN}() {
fi
}
-pkg_postinst_${PN}_openmoko() {
- if test "x$D" = "x"
+pkg_postinst_openmoko_${PN}() {
+ if test -z "$D"
then
- update-rc.d -f ${INITSCRIPT_NAME} remove
- update-rc.d ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
if test -x /usr/sbin/alsactl
then
/usr/sbin/alsactl -f ${sysconfdir}/asound.state restore
fi
+ update-rc.d -f ${INITSCRIPT_NAME} remove
+ update-rc.d ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS}
fi
}
More information about the Openembedded-commits
mailing list