Skip to content

Commit

Permalink
fix nanopi r6 audio rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek committed Sep 14, 2023
1 parent 6f97630 commit 5a1ec7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/config-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"'
Expand Down

0 comments on commit 5a1ec7a

Please sign in to comment.