distribution/packages/jelos/sources/autostart/common/005-alsa
fewtarius ae01889e80
* Fix ALSA start script
* Copy the fancontrol configuration as a sample
* Bump kernel
2022-03-15 20:10:56 -04:00

17 lines
535 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
# Copy in the configuration
if [ ! -e "/storage/.config/asound.conf" ]
then
cp /usr/config/asound.conf /storage/.config
fi
# Set the mixer in ES
sed -i 's#<string name="AudioDevice" value="'.*'" />#<string name="AudioDevice" value="'${DEVICE_AUDIO_MIXER}'" />#' /storage/.emulationstation/es_settings.cfg
VOL=$(get_setting "audio.volume" 2>/dev/null)
amixer set "${DEVICE_AUDIO_MIXER}" ${VOL}%