From df14855f666a94931194bbba33cd19cb0a57b73d Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 7 Feb 2016 02:35:24 +0100 Subject: 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. --- make_slackware_live.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'make_slackware_live.sh') 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: -- cgit v1.2.3