From 33beb24fb384c8997aa2dfcdfe1e7f821e8f02b5 Mon Sep 17 00:00:00 2001 From: wb2osz Date: Sat, 19 Oct 2024 02:32:47 +0100 Subject: [PATCH] patch from https://sources.debian.org/src/direwolf/1.7+dfsg-2/debian/patches/lib-udev-rules/ --- conf/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/conf/CMakeLists.txt b/conf/CMakeLists.txt index d4a229d..ffc809b 100644 --- a/conf/CMakeLists.txt +++ b/conf/CMakeLists.txt @@ -25,8 +25,13 @@ string(REGEX REPLACE "^%C%([^\n]*)" "\\1" file_content "${file_content}") file(WRITE "${CMAKE_BINARY_DIR}/direwolf.conf" "${file_content}") # install udev rules for CM108 +# There are two locations. The one in /etc/udev/rules.d is meant for local customization and +# takes precedence for the same name. +# https://sources.debian.org/src/direwolf/1.7+dfsg-2/debian/patches/lib-udev-rules/ +# says that we should use the /usr/lib/udev/rules.d location. if(LINUX) - install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION /etc/udev/rules.d/) + #install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION /etc/udev/rules.d/) + install(FILES "${CUSTOM_CONF_DIR}/99-direwolf-cmedia.rules" DESTINATION /usr/lib/udev/rules.d/) endif() install(FILES "${CMAKE_BINARY_DIR}/direwolf.conf" DESTINATION ${INSTALL_CONF_DIR})