1
0
mirror of https://git.familie-radermacher.ch/linux/ptouch-print.git synced 2025-12-05 19:05:26 +00:00

add and install udev rules to enable non-root access (thanks to Patrick Huesmann for contribution)

This commit is contained in:
Dominic Radermacher
2024-04-18 09:29:38 +02:00
parent 8aaeecd84b
commit a51fcf98f8
2 changed files with 23 additions and 0 deletions

View File

@@ -69,3 +69,8 @@ add_custom_target(git-version ALL
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ptouch-print.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
if(EXISTS /etc/udev/rules.d)
install(FILES udev/90-usb-ptouch-permissions.rules DESTINATION /etc/udev/rules.d)
install(CODE "execute_process(COMMAND udevadm control --reload-rules)")
endif()