]> git.ipfire.org Git - people/jschlag/network.git/commitdiff
Fix function port_get_slaves
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 16 Sep 2018 21:51:34 +0000 (23:51 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 16 Sep 2018 21:51:34 +0000 (23:51 +0200)
This functions failed when we set the SLAVES variable before in another
function.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
src/functions/functions.ports

index 82945a8f27dff979c7a9d8dafc3e13daf150afeb..53c135e1303094f46020dd582a8485f6e5f5c93b 100644 (file)
@@ -333,6 +333,7 @@ port_hotplug_event() {
 
 port_get_slaves() {
        local port="${1}"
+       local SLAVES
 
        port_settings_read "${port}" \
                --ignore-superfluous-settings SLAVES