]> git.ipfire.org Git - people/ms/network.git/commitdiff
port: ethernet: Return OK only to rename ports
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 Sep 2018 22:05:00 +0000 (23:05 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 Sep 2018 22:05:00 +0000 (23:05 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hooks/ports/ethernet

index 2beffea1b5aa03cb3fe919d23db1ff2803307958..53a995da332c6220fedf9807bfdd4d59506021d9 100644 (file)
@@ -118,8 +118,7 @@ hook_hotplug_rename() {
        # Check if the address matches with the configuration.
        if list_match "${address}" ${DEVICE} ${ADDRESS}; then
                log DEBUG "Device '${device}' equals port '${port}'."
-
-               hook_create "${device}"
+               exit ${EXIT_OK}
        fi
 
        log DEBUG "Device '${device}' does not equal port '${port}'."