]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/udev/network-hotplug
Add support for LEDs
[people/ms/network.git] / src / udev / network-hotplug
index 40d08cb99cdaa7133601066af23e8fca83286133..9054069f4085582d1963c536805be8864d412264 100644 (file)
@@ -44,6 +44,9 @@ case "${SUBSYSTEM}" in
                        PHY=""
                fi
 
+               # Configure LEDs
+               [ "${ACTION}" = "add" ] && phy_leds_autoconf "${PHY}"
+
                # Propagate the hotplug event to all configured port hooks
                hotplug_propagate_all_ports || exit ${EXIT_ERROR}
                ;;