From 806af270834ccc0d1ab4e6c7280fed39f801b4d4 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 27 Jul 2016 03:44:28 +0200 Subject: [PATCH] gluon-client-bridge, gluon-mesh-batman-adv-core: make macaddr variable local in upgrade script --- .../luasrc/lib/gluon/upgrade/320-gluon-client-bridge-wireless | 2 +- .../lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/gluon-client-bridge/luasrc/lib/gluon/upgrade/320-gluon-client-bridge-wireless b/package/gluon-client-bridge/luasrc/lib/gluon/upgrade/320-gluon-client-bridge-wireless index 16b9db93..6c25f995 100755 --- a/package/gluon-client-bridge/luasrc/lib/gluon/upgrade/320-gluon-client-bridge-wireless +++ b/package/gluon-client-bridge/luasrc/lib/gluon/upgrade/320-gluon-client-bridge-wireless @@ -25,7 +25,7 @@ local function configure_client(config, radio, index, suffix) return end - macaddr = util.get_wlan_mac(radio, index, 1) + local macaddr = util.get_wlan_mac(radio, index, 1) if not macaddr then return end diff --git a/package/gluon-mesh-batman-adv-core/luasrc/lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless b/package/gluon-mesh-batman-adv-core/luasrc/lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless index e11d118a..217fbe6a 100755 --- a/package/gluon-mesh-batman-adv-core/luasrc/lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless +++ b/package/gluon-mesh-batman-adv-core/luasrc/lib/gluon/upgrade/320-gluon-mesh-batman-adv-core-wireless @@ -33,7 +33,7 @@ local function configure_ibss(config, radio, index, suffix, disabled) return end - macaddr = util.get_wlan_mac(radio, index, 3) + local macaddr = util.get_wlan_mac(radio, index, 3) if not macaddr then return end @@ -88,7 +88,7 @@ local function configure_mesh(config, radio, index, suffix, disabled) return end - macaddr = util.get_wlan_mac(radio, index, 2) + local macaddr = util.get_wlan_mac(radio, index, 2) if not macaddr then return end