DESCRIPTION = "Alsa Scenario Files"
LICENSE = "MIT"
PV = "0.2.0"
-PR = "r0"
+PR = "r1"
SRC_URI = "\
file://asound.conf \
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
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
}
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
}