#!/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###' .emulationstation/es_settings.cfg
VOL=$(get_setting "audio.volume" 2>/dev/null)
amixer set "${DEVICE_AUDIO_MIXER}" ${VOL}%