summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 56f6c83..fba6645 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1147,8 +1147,11 @@ sed -i ${LIVE_ROOTDIR}/etc/inittab -e "s/\(id:\).\(:initdefault:\)/\1${RUNLEVEL}
# But enable NFS client support:
[ -f ${LIVE_ROOTDIR}/etc/rc.d/rc.rpc ] && chmod +x ${LIVE_ROOTDIR}/etc/rc.d/rc.rpc
-# Add a softvol pre-amp to ALSA - some computers have too low volumes:
-cat <<EOAL > ${LIVE_ROOTDIR}/etc/asound.conf
+# Add a softvol pre-amp to ALSA - some computers have too low volumes.
+# If etc/asound.conf exists it's configuring ALSA to use Pulse,
+# so in that case the pre-amp is not needed:
+if [ ! -f ${LIVE_ROOTDIR}/etc/asound.conf ]; then
+ cat <<EOAL > ${LIVE_ROOTDIR}/etc/asound.conf
pcm.!default {
type asym
playback.pcm "plug:softvol"
@@ -1162,6 +1165,7 @@ pcm.softvol {
max_dB 32.0
}
EOAL
+fi
# Skip all filesystem checks at boot:
touch ${LIVE_ROOTDIR}/etc/fastboot