From 6e09539539bfd9dd36ccd90ea4d58f97ffd81ffe Mon Sep 17 00:00:00 2001 From: "J. Burfeind" Date: Thu, 12 Aug 2021 21:02:58 +0200 Subject: [PATCH] gluon-mesh-batman-adv: implement neighbour and default_gw4 check (#2274) --- .../files/lib/gluon/state/check.d/has_default_gw4 | 2 ++ .../files/lib/gluon/state/check.d/has_neighbours | 2 ++ 2 files changed, 4 insertions(+) create mode 100755 package/gluon-mesh-batman-adv/files/lib/gluon/state/check.d/has_default_gw4 create mode 100755 package/gluon-mesh-batman-adv/files/lib/gluon/state/check.d/has_neighbours diff --git a/package/gluon-mesh-batman-adv/files/lib/gluon/state/check.d/has_default_gw4 b/package/gluon-mesh-batman-adv/files/lib/gluon/state/check.d/has_default_gw4 new file mode 100755 index 00000000..96aa9bd4 --- /dev/null +++ b/package/gluon-mesh-batman-adv/files/lib/gluon/state/check.d/has_default_gw4 @@ -0,0 +1,2 @@ +#!/bin/sh +out=$(batctl gwl -H 2>/dev/null) && [ -n "$out" ] diff --git a/package/gluon-mesh-batman-adv/files/lib/gluon/state/check.d/has_neighbours b/package/gluon-mesh-batman-adv/files/lib/gluon/state/check.d/has_neighbours new file mode 100755 index 00000000..67d389ce --- /dev/null +++ b/package/gluon-mesh-batman-adv/files/lib/gluon/state/check.d/has_neighbours @@ -0,0 +1,2 @@ +#!/bin/sh +out=$(batctl n -H 2>/dev/null) && [ -n "$out" ]