summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/root
diff options
context:
space:
mode:
Diffstat (limited to 'modules/freifunk/root')
-rwxr-xr-xmodules/freifunk/root/usr/sbin/ff_olsr_watchdog6
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 3e5258d9b..aa8de6162 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)())