diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 21:10:06 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 21:10:06 +0000 |
commit | ee0a9b946697ccc610b52b6dc182030fba225991 (patch) | |
tree | 0de8fd66e05012bfe8b1b258a336c609f3c92ef2 /config | |
parent | a8345974307b38d58dbfa352c7be93776e70ffa8 (diff) | |
download | acf-provisioning-ee0a9b946697ccc610b52b6dc182030fba225991.tar.bz2 acf-provisioning-ee0a9b946697ccc610b52b6dc182030fba225991.tar.xz |
Change use of require to work with Lua 5.2
Diffstat (limited to 'config')
-rw-r--r-- | config/delete_device.lua | 2 | ||||
-rwxr-xr-x | config/notify_device | 2 | ||||
-rw-r--r-- | config/templates/linksysata-template.lua | 2 | ||||
-rw-r--r-- | config/templates/polycom-template.lua | 2 | ||||
-rw-r--r-- | config/templates/snom-template.lua | 2 | ||||
-rw-r--r-- | config/update_device_params.lua | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/config/delete_device.lua b/config/delete_device.lua index 81c2afb..3b04894 100644 --- a/config/delete_device.lua +++ b/config/delete_device.lua @@ -1,7 +1,7 @@ -- This is the script run after deleting a device (and all of its params) local self, olddevice, oldparams = ... -require("posix") +posix = require("posix") local root = "/var/www/provisioning/htdocs/" diff --git a/config/notify_device b/config/notify_device index 3811d3f..c269147 100755 --- a/config/notify_device +++ b/config/notify_device @@ -1,5 +1,5 @@ #!/usr/bin/lua -require("socket") +socket = require("socket") validator = require("acf.validator") if not arg or #arg == 0 then diff --git a/config/templates/linksysata-template.lua b/config/templates/linksysata-template.lua index 73a1d1a..d05d512 100644 --- a/config/templates/linksysata-template.lua +++ b/config/templates/linksysata-template.lua @@ -68,7 +68,7 @@ xml_elem("CW_Setting", (values.services and values.services.callwaitingenable), -- Syntax: stdoffset[dst[offset][,start[/time],end[/time]]] -- Examples: 'GMT0' 'EST5EDT,M3.2.0,M11.1.0' '<GMT+5>5' -- Parse time zone variable -require('posixtz') +posixtz = require('posixtz') local tz = posixtz.parse(values.device.timezone) if tz then -- convert POSIX sign (W of GMT is '+') to Linksys (E of GMT is '+') diff --git a/config/templates/polycom-template.lua b/config/templates/polycom-template.lua index 81adc8f..9b02cb2 100644 --- a/config/templates/polycom-template.lua +++ b/config/templates/polycom-template.lua @@ -96,7 +96,7 @@ if values.device.sntpserver then end -- Parse time zone variable -require('posixtz') +posixtz = require('posixtz') local tz = posixtz.parse(values.device.timezone) if tz then diff --git a/config/templates/snom-template.lua b/config/templates/snom-template.lua index dc56f18..635ce3e 100644 --- a/config/templates/snom-template.lua +++ b/config/templates/snom-template.lua @@ -98,7 +98,7 @@ end -- Syntax: stdoffset[dst[offset][,start[/time],end[/time]]] -- Examples: 'GMT0' 'EST5EDT,M3.2.0,M11.1.0' '<GMT+5>5' -- Parse time zone variable -require('posixtz') +posixtz = require('posixtz') local tz = posixtz.parse(values.device.timezone) if tz then -- convert POSIX sign (W of GMT is '+') to Snom (E of GMT is '+') diff --git a/config/update_device_params.lua b/config/update_device_params.lua index 42560c3..775385c 100644 --- a/config/update_device_params.lua +++ b/config/update_device_params.lua @@ -1,7 +1,7 @@ -- This is the script run after editing device params local self, params, oldparams = ... -require("posix") +posix = require("posix") local root = "/var/www/provisioning/htdocs/" |