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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user