extract wap names from munin
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 10 Jul 2018 09:37:34 +0000 (11:37 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 10 Jul 2018 09:37:34 +0000 (11:37 +0200)
wap-names [new file with mode: 0755]

diff --git a/wap-names b/wap-names
new file mode 100755 (executable)
index 0000000..666ec63
--- /dev/null
+++ b/wap-names
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# we are extracting switch names from munin config
+
+grep '^\[wifi.ffzg;wap' /etc/munin/munin.conf | cut -d';' -f2 | sed 's/\]$//'
+