diff options
author | Steven Barth <steven@midlink.org> | 2009-06-21 13:42:26 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-06-21 13:42:26 +0000 |
commit | 30b216f774c2404a965807ddb93a4a4b2aaeac04 (patch) | |
tree | 2d4bbdadc263f495e358af0fda9baf5b02274c3b /modules/freifunk/root | |
parent | 2baab00b19fc6eb4e0aca4da035292e37d94a640 (diff) |
Drop support for luaposix and bitlib (obsoleted by nixio)
Mark luci.fs as deprecated
Diffstat (limited to 'modules/freifunk/root')
-rwxr-xr-x | modules/freifunk/root/usr/sbin/ff_olsr_watchdog | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/freifunk/root/usr/sbin/ff_olsr_watchdog b/modules/freifunk/root/usr/sbin/ff_olsr_watchdog index 3e5258d9be..aa8de61622 100755 --- a/modules/freifunk/root/usr/sbin/ff_olsr_watchdog +++ b/modules/freifunk/root/usr/sbin/ff_olsr_watchdog @@ -3,9 +3,9 @@ require "os" require "io" require "uci" -require "posix" +local fs = require "nixio.fs" -if posix.access("/var/run/olsrd.pid") then +if fs.access("/var/run/olsrd.pid") then local stamp, intv local x = uci.cursor() @@ -17,7 +17,7 @@ if posix.access("/var/run/olsrd.pid") then end end) - if intv and posix.access(stamp) then + if intv and fs.access(stamp) then local systime = os.time() local wdgtime = tonumber(io.lines(stamp)()) |