From: Jonatan Schlag Date: Sun, 16 Sep 2018 21:51:34 +0000 (+0200) Subject: Fix function port_get_slaves X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fba7943cda86a3c7fad336db30bb206f16cd25b;p=people%2Fjschlag%2Fnetwork.git Fix function port_get_slaves This functions failed when we set the SLAVES variable before in another function. Signed-off-by: Jonatan Schlag --- diff --git a/src/functions/functions.ports b/src/functions/functions.ports index 82945a8..53c135e 100644 --- a/src/functions/functions.ports +++ b/src/functions/functions.ports @@ -333,6 +333,7 @@ port_hotplug_event() { port_get_slaves() { local port="${1}" + local SLAVES port_settings_read "${port}" \ --ignore-superfluous-settings SLAVES