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" ]