fail to find command iw the proper way
Costa Tsaousis (ktsaou) committed
Jul 14, 2016 at 21:10 UTC
4383a5013c0c6b82a73f12a298d367f3a654aac6
1 file changed
+2
charts.d/ap.chart.sh
+2
@@ -11,6 +11,8 @@ export PATH="${PATH}:/sbin:/usr/sbin:/usr/local/sbin"
11
12
# _check is called once, to find out if this chart should be enabled or not
13
ap_check() {
14
+ require_cmd iw || return 1
15
+
16
local ev=$(iw dev | awk '
17
BEGIN {
18
i = "";