From: Michael Tremer Date: Thu, 20 Sep 2018 22:05:00 +0000 (+0100) Subject: port: ethernet: Return OK only to rename ports X-Git-Tag: 010~54 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=2f7adf2c86e3bfcd1d4dc459770d4f788a8c8af6;p=network.git port: ethernet: Return OK only to rename ports Signed-off-by: Michael Tremer --- 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}'."