]> git.ipfire.org Git - people/ms/network.git/blobdiff - hooks/ports/ethernet
Fix hotplugging with udev.
[people/ms/network.git] / hooks / ports / ethernet
index cf37aa05cf78d25ee9970172f5b38efc69d464c2..499889adc84e66f3646f7965dfe0962e68f27352 100755 (executable)
@@ -19,7 +19,7 @@
 #                                                                             #
 ###############################################################################
 
-. /lib/network/header-port
+. /usr/lib/network/header-port
 
 HOOK_SETTINGS="HOOK DEVICE_MAC"
 
@@ -70,9 +70,11 @@ function _hotplug() {
        config_read $(port_file ${port})
 
        if [ "${DEVICE_MAC}" = "$(device_get_address ${device})" ]; then
+               log DEBUG "Device '${device}' equals port '${port}'."
                exit ${EXIT_OK}
        fi
 
+       log DEBUG "Device '${device}' does not equal port '${port}'."
        exit ${EXIT_ERROR}
 }