olsr watchdog also for renamed pid file (ipv4) https://github.com/freifunk/firmware...
authorMatthias Uferer <ufo@rund.freifunk.net>
Wed, 30 Jul 2014 14:22:06 +0000 (14:22 +0000)
committerMatthias Uferer <ufo@rund.freifunk.net>
Wed, 30 Jul 2014 14:22:06 +0000 (14:22 +0000)
contrib/package/freifunk-common/files/usr/sbin/ff_olsr_watchdog

index aa8de6162262cb1a7b90152443d92db6ab85edd1..069f4c32179c53e3bf14232de908a7876203d846 100755 (executable)
@@ -5,7 +5,7 @@ require "io"
 require "uci"
 local fs = require "nixio.fs"
 
-if fs.access("/var/run/olsrd.pid") then
+if fs.access("/var/run/olsrd.pid") or fs.access("/var/run/olsrd4.pid") then
        local stamp, intv
        local x = uci.cursor()