Skip to content

Commit 8d26157

Browse files
authored
Merge pull request #3742 from cmitu/audio-save
audiosettings: ensure ALSA configuration folder exists
2 parents 722ae84 + a902414 commit 8d26157

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scriptmodules/supplementary/audiosettings.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function _reset_alsa_audiosettings() {
5050
function _move_old_config_audiosettings() {
5151
if [[ -f "$home/.asoundrc" && ! -f "/etc/alsa/conf.d/99-retropie.conf" ]]; then
5252
if dialog --yesno "The ALSA audio configuration for RetroPie has moved from $home/.asoundrc to /etc/alsa/conf.d/99-retropie.conf\n\nYou have a configuration in $home/.asoundrc - do you want to move it to the new location? If $home/.asoundrc contains your own changes you should choose 'No'." 20 76 2>&1 >/dev/tty; then
53+
mkdir -p /etc/alsa/conf.d
5354
mv "$home/.asoundrc" "/etc/alsa/conf.d/"
5455
fi
5556
fi
@@ -224,6 +225,7 @@ ctl.!default {
224225
EOF
225226
fi
226227
local dest="/etc/alsa/conf.d/99-retropie.conf"
228+
mkdir -p /etc/alsa/conf.d
227229
mv "$tmpfile" "$dest"
228230
chmod 644 "$dest"
229231
}

0 commit comments

Comments
 (0)