mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
mpm: systemd: systemd configuration are getting now installed under consideration of the device type
This commit is contained in:
parent
1182144336
commit
7018ac8e47
@ -43,7 +43,19 @@ install(FILES
|
||||
)
|
||||
|
||||
# udev rules
|
||||
install(FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/udev/70-sfp-net.rules
|
||||
DESTINATION ${UDEV_UDEVDIR}/rules.d
|
||||
if(MPM_DEVICE STREQUAL "n3xx")
|
||||
install(FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/udev/n3xx/70-sfp-net.rules
|
||||
DESTINATION ${UDEV_UDEVDIR}/rules.d
|
||||
)
|
||||
elseif(MPM_DEVICE STREQUAL "e320")
|
||||
install(FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/udev/e3xx/70-sfp-net.rules
|
||||
DESTINATION ${UDEV_UDEVDIR}/rules.d
|
||||
)
|
||||
elseif(MPM_DEVICE STREQUAL "e31x")
|
||||
install(FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/udev/e3xx/70-sfp-net.rules
|
||||
DESTINATION ${UDEV_UDEVDIR}/rules.d
|
||||
)
|
||||
endif(MPM_DEVICE STREQUAL "n3xx")
|
||||
|
||||
3
mpm/systemd/udev/n3xx/70-sfp-net.rules
Normal file
3
mpm/systemd/udev/n3xx/70-sfp-net.rules
Normal file
@ -0,0 +1,3 @@
|
||||
SUBSYSTEM=="net", KERNELS=="40000000.ethernet", NAME="sfp0"
|
||||
SUBSYSTEM=="net", KERNELS=="40008000.ethernet", NAME="sfp1"
|
||||
SUBSYSTEM=="net", KERNELS=="40040000.ethernet", NAME="int0"
|
||||
Loading…
Reference in New Issue
Block a user