diff options
Diffstat (limited to 'mpm/systemd')
-rw-r--r-- | mpm/systemd/CMakeLists.txt | 18 | ||||
-rw-r--r-- | mpm/systemd/udev/e3xx/70-sfp-net.rules (renamed from mpm/systemd/udev/70-sfp-net.rules) | 0 | ||||
-rw-r--r-- | mpm/systemd/udev/n3xx/70-sfp-net.rules | 3 |
3 files changed, 18 insertions, 3 deletions
diff --git a/mpm/systemd/CMakeLists.txt b/mpm/systemd/CMakeLists.txt index b8f6e5901..32461b7fb 100644 --- a/mpm/systemd/CMakeLists.txt +++ b/mpm/systemd/CMakeLists.txt @@ -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") diff --git a/mpm/systemd/udev/70-sfp-net.rules b/mpm/systemd/udev/e3xx/70-sfp-net.rules index 3015dfdef..3015dfdef 100644 --- a/mpm/systemd/udev/70-sfp-net.rules +++ b/mpm/systemd/udev/e3xx/70-sfp-net.rules diff --git a/mpm/systemd/udev/n3xx/70-sfp-net.rules b/mpm/systemd/udev/n3xx/70-sfp-net.rules new file mode 100644 index 000000000..b113ac608 --- /dev/null +++ b/mpm/systemd/udev/n3xx/70-sfp-net.rules @@ -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" |