summaryrefslogtreecommitdiffstats
path: root/config/update_device_params.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-11-26 02:56:30 +0000
committerTed Trask <ttrask01@yahoo.com>2013-05-25 12:50:07 +0000
commit7794c065673caa79d66bb3ad9188a926dabeb797 (patch)
tree15d14c47f018131d8f3771a21e028fbe26c91825 /config/update_device_params.lua
parent364caf9b075882bf5d0b8fed7990cc70cdf1a998 (diff)
downloadacf-provisioning-7794c065673caa79d66bb3ad9188a926dabeb797.tar.bz2
acf-provisioning-7794c065673caa79d66bb3ad9188a926dabeb797.tar.xz
Comment out references to APP
(cherry picked from commit a0edc5f3607d568e6c3ddc9d88b4eb9048cea81f)
Diffstat (limited to 'config/update_device_params.lua')
-rw-r--r--config/update_device_params.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/update_device_params.lua b/config/update_device_params.lua
index 61d33d2..487765a 100644
--- a/config/update_device_params.lua
+++ b/config/update_device_params.lua
@@ -5,7 +5,7 @@ require("posix")
local root = "/var/www/provisioning/htdocs/"
-APP.logevent("got to update_device_params script")
+--APP.logevent("got to update_device_params script")
local function findip(mac)
if not mac or mac == "" then
@@ -20,10 +20,10 @@ end
local notify_device = function(mac, extension)
local ipaddr = findip(mac)
if ipaddr then
- APP.logevent("Notifying "..ipaddr.." to update for "..(mac or ""))
+ --APP.logevent("Notifying "..ipaddr.." to update for "..(mac or ""))
os.execute("/etc/provisioning/notify_device "..ipaddr.." "..extension)
else
- APP.logevent("Warning - could not find IP address for "..(mac or ""))
+ --APP.logevent("Warning - could not find IP address for "..(mac or ""))
end
end
@@ -37,7 +37,7 @@ if oldparams.value.device and oldparams.value.device.value.mac and oldparams.val
for d in posix.files(path) do
if string.match(d, string.lower(oldparams.value.device.value.mac.value)) and posix.stat(path..d, "type") == "regular" then
local newfile = string.gsub(d, string.lower(oldparams.value.device.value.mac.value), string.lower(params.value.device.value.mac.value))
- APP.logevent("moving "..path..d.." to "..path..newfile)
+ --APP.logevent("moving "..path..d.." to "..path..newfile)
os.rename(path..d, path..newfile)
end
end