Overlay modprobe.d/alsa-base until this can be implemented more cleanly.

This commit is contained in:
fewtarius 2022-10-22 09:45:45 -04:00
parent 774f651460
commit bdbe2b54b7
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -19,7 +19,18 @@ ctl.!default {
card 0
}
EOF
if [ -e "/storage/.config/modprobe.d/alsa-base.conf" ]
then
touch /storage/.config/modprobe.d/alsa-base.conf
reboot
fi
else
if [ -e "/storage/.config/modprobe.d/alsa-base.conf" ]
then
rm -f /storage/.config/modprobe.d/alsa-base.conf
reboot
fi
cp /usr/config/asound.conf /storage/.config
if [ ! -e "/storage/.config/asound.state" ] && [ -e /usr/config/asound.state ]