From 2f7adf2c86e3bfcd1d4dc459770d4f788a8c8af6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 20 Sep 2018 23:05:00 +0100 Subject: [PATCH] port: ethernet: Return OK only to rename ports Signed-off-by: Michael Tremer --- src/hooks/ports/ethernet | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hooks/ports/ethernet b/src/hooks/ports/ethernet index 2beffea1..53a995da 100644 --- a/src/hooks/ports/ethernet +++ b/src/hooks/ports/ethernet @@ -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}'." -- 2.39.2