[oe-commits] John Lee : alsa-state.bb: really update INITSCRIPT_PARAMS during upgrade.

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: abfccfb9d50048e30f0d32e11148e5edab199583
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=abfccfb9d50048e30f0d32e11148e5edab199583

Author: John Lee <john_lee at openmoko.com>
Date:   Tue Nov 25 01:23:23 2008 +0800

alsa-state.bb: really update INITSCRIPT_PARAMS during upgrade.

---

 packages/alsa/alsa-state.bb |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/packages/alsa/alsa-state.bb b/packages/alsa/alsa-state.bb
index d245ec6..c84964c 100644
--- a/packages/alsa/alsa-state.bb
+++ b/packages/alsa/alsa-state.bb
@@ -53,3 +53,15 @@ pkg_postinst_${PN}() {
 		fi
 	fi
 }
+
+pkg_postinst_${PN}_openmoko() {
+	if test "x$D" = "x"
+	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
+	fi
+}





More information about the Openembedded-commits mailing list