summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm/inetable/common.sh
diff options
context:
space:
mode:
authorKatze Miau <miaukatzemiau@priveasy.de>2011-12-09 19:52:15 (GMT)
committerKatze Miau <miaukatzemiau@priveasy.de>2011-12-09 19:52:15 (GMT)
commitcd9f7aca64327e29cc8acb55d94f21a2da03330e (patch)
treee6aafe13e28045fad9cad192dd14c4b7a419d2f9 /files/common/etc/fsm/inetable/common.sh
parentef0ab9ba3f0042f59c0a8f155fcb61187585303e (diff)
add FSM inetable
- implemented according to documentation - almost no tests so far
Diffstat (limited to 'files/common/etc/fsm/inetable/common.sh')
-rw-r--r--files/common/etc/fsm/inetable/common.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/files/common/etc/fsm/inetable/common.sh b/files/common/etc/fsm/inetable/common.sh
new file mode 100644
index 0000000..7c73837
--- /dev/null
+++ b/files/common/etc/fsm/inetable/common.sh
@@ -0,0 +1,5 @@
+cloud_is_online () {
+ # look for mac addrs in batman gateway list
+ # TODO: remove fake gws with almost zero bandwith
+ batctl gwl | tail -n-1 | egrep -q '([0-9a-f]{2}:){5}[0-9a-f]{2}'
+}
contact: Jan Huwald // Impressum