Skip to content

Commit

Permalink
Changed path for udev rules to default
Browse files Browse the repository at this point in the history
/etc/udev/rules.d/ -> /lib/udev/rules.d/
  • Loading branch information
Nightwalker-87 committed Jun 16, 2020
1 parent ffe6240 commit 15bdf0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(STLINK_MODPROBED_DIR "/etc/modprobe.d" CACHE PATH "modprobe.d directory")
install(FILES ${CMAKE_SOURCE_DIR}/config/modprobe.d/stlink_v1.conf DESTINATION ${STLINK_MODPROBED_DIR})

## Install udev rules files to /etc/udev/rules.d/ (explicitly hardcoded)
set(STLINK_UDEV_RULES_DIR "/etc/udev/rules.d" CACHE PATH "udev rules directory")
## Install udev rules files to /lib/udev/rules.d/ (explicitly hardcoded)
set(STLINK_UDEV_RULES_DIR "/lib/udev/rules.d" CACHE PATH "udev rules directory")
file(GLOB RULES_FILES ${CMAKE_SOURCE_DIR}/config/udev/rules.d/*.rules)
install(FILES ${RULES_FILES} DESTINATION ${STLINK_UDEV_RULES_DIR})
endif ()
Expand Down

0 comments on commit 15bdf0a

Please sign in to comment.