mirror of
git://git.yoctoproject.org/poky
synced 2026-08-12 15:40:23 +00:00
alsa-state: ignore 'No soundcards found' error in pkg_postinst
If there is no soundcards on the target (e.g. qemu), the pkp_postinst function will report an error: alsactl: load_state:1735: No soundcards found... pkg_run_script: package "alsa-state" postinst script returned status 19. opkg_configure: alsa-state.postinst returned 19. Pass '-g' option to alsactl to ignore this error. (From OE-Core rev: 100fce2a65582b9032cb9412fbe8ca572a0549b1) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a1a7dec7a1
commit
d32a0d25ef
@ -62,7 +62,7 @@ pkg_postinst_${PN}() {
|
||||
then
|
||||
if test -x ${sbindir}/alsactl
|
||||
then
|
||||
${sbindir}/alsactl -f ${localstatedir}/lib/alsa/asound.state restore
|
||||
${sbindir}/alsactl -g -f ${localstatedir}/lib/alsa/asound.state restore
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user