diff options
author | Sven Roederer <freifunk@it-solutions.geroedel.de> | 2019-02-03 14:13:35 +0100 |
---|---|---|
committer | Sven Roederer <freifunk@it-solutions.geroedel.de> | 2019-02-13 21:23:34 +0100 |
commit | 4654ba92c3999d84b08211f05d2ccb5ea9da731b (patch) | |
tree | 06cedf8e8badc0ce584d8bd5e97fab7476c81549 /contrib/package/freifunk-common/files/usr/sbin | |
parent | eda8f02dac3caa4d0f52cd1e860d7a392c295df3 (diff) |
treewide: move freifunk-related packages to separate repo
Even Freifunk was one of the major factory to create the LuCI-system, it's
now only a very small part of LuCI. LuCI has become a much bigger thing
and it seems that it's time to move the packages only relating to Freifunk
into it's own feed.
On the mailinglist it was discussed [1] and a repo below the general
Freifunk team on github was created.
This commit removes all packages that will be hosted in the new repo [2]
1 - http://lists.freifunk.net/pipermail/wlannews-freifunk.net/2019-February/004818.html
2 - https://github.com/freifunk/openwrt-packages
Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
Diffstat (limited to 'contrib/package/freifunk-common/files/usr/sbin')
-rwxr-xr-x | contrib/package/freifunk-common/files/usr/sbin/ff_olsr_watchdog | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/contrib/package/freifunk-common/files/usr/sbin/ff_olsr_watchdog b/contrib/package/freifunk-common/files/usr/sbin/ff_olsr_watchdog deleted file mode 100755 index af1d7ca68d..0000000000 --- a/contrib/package/freifunk-common/files/usr/sbin/ff_olsr_watchdog +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/lua - -require "os" -require "io" -require "uci" -local fs = require "nixio.fs" - -if fs.access("/var/run/olsrd.pid") or fs.access("/var/run/olsrd4.pid") then - local stamp, intv - local x = uci.cursor() - - x:foreach("olsrd", "LoadPlugin", - function(s) - if s.library == "olsrd_watchdog" then - intv = tonumber(s.interval) - stamp = s.file - end - end) - - if intv and fs.access(stamp) then - local systime = os.time() - local wdgtime = tonumber(io.lines(stamp)()) - - if not wdgtime or ( systime - wdgtime ) > ( intv * 2 ) then - os.execute("logger -t 'OLSR watchdog' 'Process died - restarting!'") - local tnls = io.popen("ip tunnel show | cut -d : -f 1") - while true do - tnl = tnls:read("*line") - if tnl == nil then break end - if string.find(tnl, "tnl_") == 1 then - os.execute(string.format("logger -t 'OLSR watchdog' 'Deleting stale tunnel %s'", tnl)) - os.execute(string.format("ip link del %s", tnl)) - end - end - os.execute("/etc/init.d/olsrd restart") - end - end -end |