X-Git-Url: http://git.ipfire.org/?p=people%2Fms%2Fnetwork.git;a=blobdiff_plain;f=src%2Fhooks%2Fports%2Fip-tunnel;h=482511ea2c1147196a67ea3e8c0478f336ca4719;hp=fa7193ca1566b92513032e6d05e94d5a5e05dfe0;hb=12f9c8d2550c8fcab536bb8b971caddfa8ee0c80;hpb=eba9fa9c0b647552d8a43fb6ff5ab00c2ab21402 diff --git a/src/hooks/ports/ip-tunnel b/src/hooks/ports/ip-tunnel index fa7193ca..482511ea 100644 --- a/src/hooks/ports/ip-tunnel +++ b/src/hooks/ports/ip-tunnel @@ -146,26 +146,5 @@ hook_remove() { } hook_hotplug_rename() { - local port="${1}" - assert isset port - - local device="${2}" - assert isset device - - local ${HOOK_SETTINGS[*]} - if ! port_settings_read "${port}"; then - log ERROR "Could not read settings for port ${port}" - return ${EXIT_ERROR} - fi - - # Get the current MAC address of the device. - local address="$(device_get_address ${device})" - assert isset address - - # Return OK on match - if [ "${ADDRESS}" = "${address}" ]; then - return ${EXIT_OK} - fi - - return ${EXIT_ERROR} + hook_hotplug_rename_by_address "$@" }