]> arthur.barton.de Git - netdata.git/commitdiff
fail to find command iw the proper way
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Thu, 14 Jul 2016 18:10:37 +0000 (21:10 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Thu, 14 Jul 2016 18:10:37 +0000 (21:10 +0300)
charts.d/ap.chart.sh

index aed51c1b676089f2862579b81d263a56263e97f1..ebd4808e5387148531735848418a2ccbe128788e 100755 (executable)
@@ -11,6 +11,8 @@ export PATH="${PATH}:/sbin:/usr/sbin:/usr/local/sbin"
 
 # _check is called once, to find out if this chart should be enabled or not
 ap_check() {
+       require_cmd iw || return 1
+       
        local ev=$(iw dev | awk '
                BEGIN {
                        i = "";