ae01889e80
* Copy the fancontrol configuration as a sample * Bump kernel
17 lines
535 B
Bash
Executable file
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}%
|