From 5a1ec7a71140cb6ef12daa0d1db1419d097d29ea Mon Sep 17 00:00:00 2001 From: Joshua-Riek Date: Wed, 13 Sep 2023 21:08:30 -0400 Subject: [PATCH] fix nanopi r6 audio rule --- scripts/config-image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/config-image.sh b/scripts/config-image.sh index d2e990ac..85c7e65f 100755 --- a/scripts/config-image.sh +++ b/scripts/config-image.sh @@ -137,9 +137,10 @@ for type in $target; do elif [ "${BOARD}" == nanopi-r6c ] || [ "${BOARD}" == nanopi-r6s ]; then { echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi0-sound", ENV{SOUND_DESCRIPTION}="HDMI0 Audio"' + } > ${chroot_dir}/etc/udev/rules.d/90-naming-audios.rules + cp ${overlay_dir}/etc/init.d/friendlyelec-leds.sh ${chroot_dir}/etc/init.d/friendlyelec-leds.sh chroot ${chroot_dir} /bin/bash -c "update-rc.d friendlyelec-leds.sh defaults" - } > ${chroot_dir}/etc/udev/rules.d/90-naming-audios.rules elif [ "${BOARD}" == nanopc-t6 ]; then { echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi0-sound", ENV{SOUND_DESCRIPTION}="HDMI0 Audio"'