aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/systemd/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'mpm/systemd/CMakeLists.txt')
-rw-r--r--mpm/systemd/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/mpm/systemd/CMakeLists.txt b/mpm/systemd/CMakeLists.txt
index f56ccb076..da811c30f 100644
--- a/mpm/systemd/CMakeLists.txt
+++ b/mpm/systemd/CMakeLists.txt
@@ -10,6 +10,9 @@ PKG_CHECK_MODULES(SYSTEMD "systemd" REQUIRED)
PKG_GET_VARIABLE(SYSTEMD_SYSTEM_UNITDIR systemd systemdsystemunitdir)
message(STATUS "Systemd system unit directory ${SYSTEMD_SYSTEM_UNITDIR}")
+PKG_GET_VARIABLE(SYSTEMD_SYSCTLDIR systemd sysctldir)
+message(STATUS "Systemd sysctl directory ${SYSTEMD_SYSCTLDIR}")
+
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/usrp-hwd.service.in
${CMAKE_CURRENT_BINARY_DIR}/usrp-hwd.service
@@ -19,3 +22,8 @@ install(FILES
${CMAKE_CURRENT_BINARY_DIR}/usrp-hwd.service
DESTINATION ${SYSTEMD_SYSTEM_UNITDIR}
)
+
+install(FILES
+ ${CMAKE_CURRENT_SOURCE_DIR}/usrp-hwd.conf
+ DESTINATION ${SYSTEMD_SYSCTLDIR}
+)