diff options
author | Chia-I Wu <olv@openmoko.com> | 2008-10-28 16:48:24 +0800 |
---|---|---|
committer | John Lee <john_lee@openmoko.org> | 2009-01-12 14:29:26 +0800 |
commit | e3d2c04b0c9526ed1cd46016717f261527cd9e2d (patch) | |
tree | ad92d8c2131280093462a5600e184ed3b07b2723 /packages/alsa | |
parent | 5c46f644fd99750ec623ccf67465f045833ec38c (diff) |
fastboot: alsa-state: Run init script earlier and in the background.
Diffstat (limited to 'packages/alsa')
-rw-r--r-- | packages/alsa/alsa-state.bb | 8 | ||||
-rwxr-xr-x | packages/alsa/alsa-state/alsa-state | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/packages/alsa/alsa-state.bb b/packages/alsa/alsa-state.bb index ba030e4aab..9e7f157059 100644 --- a/packages/alsa/alsa-state.bb +++ b/packages/alsa/alsa-state.bb @@ -7,7 +7,7 @@ DESCRIPTION = "Alsa Scenario Files" LICENSE = "MIT" PV = "0.2.0" -PR = "r0" +PR = "r1" SRC_URI = "\ file://asound.conf \ @@ -19,7 +19,7 @@ SRC_URI = "\ inherit update-rc.d INITSCRIPT_NAME = "alsa-state" -INITSCRIPT_PARAMS = "defaults 10" +INITSCRIPT_PARAMS = "start 39 S ." do_install() { install -d ${D}${sysconfdir}/init.d @@ -50,5 +50,9 @@ pkg_postinst_${PN}() { then /usr/sbin/alsactl -f ${sysconfdir}/asound.state restore fi + # INITSCRIPT_PARAMS changed, so remove the old and + # install the new setting. + update-rc.d -f ${INITSCRIPT_NAME} remove + update-rc.d ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS} fi } diff --git a/packages/alsa/alsa-state/alsa-state b/packages/alsa/alsa-state/alsa-state index c6bc1fd494..84cdf03750 100755 --- a/packages/alsa/alsa-state/alsa-state +++ b/packages/alsa/alsa-state/alsa-state @@ -11,7 +11,7 @@ asound_restore(){ echo "ALSA: Restoring mixer settings..." if test -x /usr/sbin/alsactl -a -e /etc/asound.state then - /usr/sbin/alsactl -f /etc/asound.state restore + /usr/sbin/alsactl -f /etc/asound.state restore & fi } |