summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-12-23 23:41:41 +0100
committer Eric Hameleers <alien@slackware.com>2015-12-23 23:41:41 +0100
commit6868577cdf2e60aa58381d596dd24e5bf78bd467 (patch)
treec177bba779f759d8bf8b9f473817afd7a4486099 /make_slackware_live.sh
parent8c91ec56db15f4dddb5f46e36443501e781eb49e (diff)
downloadliveslak-6868577cdf2e60aa58381d596dd24e5bf78bd467.tar.gz
liveslak-6868577cdf2e60aa58381d596dd24e5bf78bd467.tar.xz
Add a softvol pre-amp to ALSA - some computers have too low audio volume.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 4f54e99..3898f2e 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1028,6 +1028,22 @@ 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
+pcm.!default {
+ type asym
+ playback.pcm "plug:softvol"
+ capture.pcm "plug:dsnoop"
+}
+
+pcm.softvol {
+ type softvol
+ slave.pcm "dmix"
+ control { name "PCM"; card 0; }
+ max_dB 32.0
+}
+EOAL
+
# Skip all filesystem checks at boot:
touch ${LIVE_ROOTDIR}/etc/fastboot