summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/update_device.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/update_device.lua b/config/update_device.lua
index cb575e9..b4334cd 100644
--- a/config/update_device.lua
+++ b/config/update_device.lua
@@ -9,12 +9,12 @@ local env = {}
setmetatable (env, {__index = _G})
local IS_52_LOAD = pcall(load, '')
if IS_52_LOAD then
- local f = loadfile("/etc/provisioning/update_device_params.lua", "bt", env)
+ f = loadfile("/etc/provisioning/update_device_params.lua", "bt", env)
else
-- loadfile loads into the global environment
-- so we set env 0, not env 1
setfenv (0, env)
- local f = loadfile("/etc/provisioning/update_device_params.lua")
+ f = loadfile("/etc/provisioning/update_device_params.lua")
setfenv (0, _G)
end
if (f) then f(functions, params, oldparams) end