diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-09-29 09:35:44 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-09-29 09:35:44 +0000 |
commit | 2d0171d72c03ba59b21cd0e7b24ee4a036197785 (patch) | |
tree | aac2a9f017555235482e340b3c83c60b35224889 /modules/freifunk | |
parent | c3a028c76c294c0578b0449d75f9aeaad209c8d1 (diff) |
modules/freifunk: Remove helper scripts, they moved to freifunk-common
Diffstat (limited to 'modules/freifunk')
-rwxr-xr-x | modules/freifunk/root/usr/bin/ffdzero | 10 | ||||
-rwxr-xr-x | modules/freifunk/root/usr/bin/neigh.sh | 3 | ||||
-rwxr-xr-x | modules/freifunk/root/usr/sbin/ff_olsr_watchdog | 29 | ||||
-rwxr-xr-x | modules/freifunk/root/usr/sbin/ff_rdate | 20 |
4 files changed, 0 insertions, 62 deletions
diff --git a/modules/freifunk/root/usr/bin/ffdzero b/modules/freifunk/root/usr/bin/ffdzero deleted file mode 100755 index 24e8c2e18..000000000 --- a/modules/freifunk/root/usr/bin/ffdzero +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -test "$1" = "-h" && echo -e "Usage:\n\t$0 -h\n\t$0 [ { ip | hostname } ]" >&2 && exit 1 - -host="${1:-leipzig.freifunk.net}" - -wget -O /dev/null http://$host/cgi-bin-dev-zero.bin -test "$?" = "1" && wget -O /dev/null http://$host/cgi-bin/dev-zero.bin -test "$?" = "1" && wget -O /dev/null http://$host/cgi-bin/luci/freifunk/status/zeroes -test "$?" = "1" && echo "$host: no zero download found..." && exit 1 diff --git a/modules/freifunk/root/usr/bin/neigh.sh b/modules/freifunk/root/usr/bin/neigh.sh deleted file mode 100755 index 723b813b7..000000000 --- a/modules/freifunk/root/usr/bin/neigh.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -wget -q -O - http://localhost:2006/neighbours|sed -e's/LinkQuality/LQ/;s/Hysteresis/Hyst./;s/Willingness/Will./' diff --git a/modules/freifunk/root/usr/sbin/ff_olsr_watchdog b/modules/freifunk/root/usr/sbin/ff_olsr_watchdog deleted file mode 100755 index aa8de6162..000000000 --- a/modules/freifunk/root/usr/sbin/ff_olsr_watchdog +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/lua - -require "os" -require "io" -require "uci" -local fs = require "nixio.fs" - -if fs.access("/var/run/olsrd.pid") then - local stamp, intv - local x = uci.cursor() - - x:foreach("olsrd", "LoadPlugin", - function(s) - if s.library == "olsrd_watchdog.so.0.1" 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!'") - os.execute("/etc/init.d/olsrd restart") - end - end -end diff --git a/modules/freifunk/root/usr/sbin/ff_rdate b/modules/freifunk/root/usr/sbin/ff_rdate deleted file mode 100755 index dc2c7b2d2..000000000 --- a/modules/freifunk/root/usr/sbin/ff_rdate +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -uci_get_one() { - for var in "$@"; do - uci -P /var/state get "$var" 2>/dev/null && break - done -} - -local servers="$(uci_get_one 'network.wan.lease_timesrv') $(uci show timeserver | sed -ne 's/.*hostname=//p')" - -if [ -n "$servers" ]; then - for server in $servers; do - rdate -s $server >/dev/null 2>/dev/null && \ - logger -t rdate "Synced with $server" && break - - logger -t rdate "Failed to sync with $server" - done -else - logger -t rdate "No usable time server found" -fi |