File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,11 @@ if(NOT SKIP_INSTALL_ALL)
9090endif ()
9191
9292if (WITH_SYSTEMD)
93+ if (${WITH_HWMON} )
94+ set (CMAKE_SERVICE_PATH "ConditionPathExists=|/sys/bus/iio\n ConditionPathExists=|/sys/class/hwmon" )
95+ else ()
96+ set (CMAKE_SERVICE_PATH "ConditionPathExists=/sys/bus/iio" )
97+ endif ()
9398 configure_file (${CMAKE_CURRENT_SOURCE_DIR} /init/iiod.service.cmakein ${PROJECT_BINARY_DIR} /init/iiod.service)
9499 install (FILES ${PROJECT_BINARY_DIR} /init/iiod.service DESTINATION ${SYSTEMD_UNIT_INSTALL_DIR} )
95100endif ()
Original file line number Diff line number Diff line change 88Description=IIO Daemon
99Requires=systemd-udev-settle.service
1010After=network.target systemd-udev-settle.service
11- ConditionPathExists=/sys/bus/iio
11+ @CMAKE_SERVICE_PATH@
1212
1313[Service]
1414Environment=$IIOD_EXTRA_OPTS=''
You can’t perform that action at this time.
0 commit comments