#!/bin/bash # SPDX-License-Identifier: Apache-2.0 # Copyright (C) 2023-present Brooksytech (https://github.com/brooksytech) . /etc/profile if [ ! -d "/storage/.config/modprobe.d/" ] then mkdir -p /storage/.config/modprobe.d fi MYDEVICE=$(get_setting system.audiodevice) if [ -z "${MYDEVICE}" ] then touch /storage/.config/modprobe.d/alsa-base.conf set-audio set "ROCKCHIP-HDMI0 (1:0)" set-audio esset "PCM" reboot fi