collectd: sqm_collectd: improve error handling
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Fri, 22 May 2020 11:50:12 +0000 (12:50 +0100)
committerKevin Darbyshire-Bryant <6500011+ldir-EDB0@users.noreply.github.com>
Mon, 25 May 2020 11:39:53 +0000 (12:39 +0100)
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
utils/collectd/Makefile
utils/collectd/files/exec-scripts/sqm_collectd.sh

index e8a8bcfff8dadf7e7c6dd60e8ff2f5081defcbf2..60bed8e913e0936210a5265e4cc5110c0dc0f06b 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=collectd
 PKG_VERSION:=5.11.0
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://collectd.org/files/ \
index 66ba8df3876553f52c0b261e7caf239d901510f5..f158056e8ff9099007b87f98ada41afd92dae31b 100755 (executable)
@@ -80,6 +80,8 @@ process_qdisc() {
 
        ifc="$1"
        jsn=$(tc -s -j qdisc show dev "$ifc")
+       [ $? ] || return
+
        # strip leading & trailing []
        jsn="${jsn#[}" ; jsn="${jsn%]}"