diff options
author | Eric Hameleers <alien@slackware.com> | 2016-02-07 02:35:24 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-02-07 02:35:24 +0100 |
commit | df14855f666a94931194bbba33cd19cb0a57b73d (patch) | |
tree | de3e3b8edd8e39944f76bcae79ee4140d7ff860b /make_slackware_live.sh | |
parent | d157610c593574f6c514804aa5ab276847179833 (diff) | |
download | liveslak-df14855f666a94931194bbba33cd19cb0a57b73d.tar.gz liveslak-df14855f666a94931194bbba33cd19cb0a57b73d.tar.xz |
If ALSA pipes into PulseAudio, configure a fallback using "sysdefault".
Or else there will not be sound on first boot.
Not so important for Slackware itself, but a Live distro run from
CD or DVD will never have sound.
Thanks to USUARIONUEVO on LinuxQuestions.org.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-x | make_slackware_live.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 8d9f726..7b9ce67 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1208,6 +1208,13 @@ pcm.softvol { max_dB 32.0 } EOAL +else + if ! grep -q sysdefault ${LIVE_ROOTDIR}/etc/asound.conf ; then + # If pulse is used, configure a fallback to use the system default + # or else there will not be sound on first boot: + sed -i ${LIVE_ROOTDIR}/etc/asound.conf \ + -e '/type pulse/ a \ \ fallback "sysdefault"' + fi fi # Skip all filesystem checks at boot: |