Browse Source

collectd: sqm_collectd improve interface name filter

Increase the range of characters that get substituted by '_' so the
shell doesn't complain about illegal variable names.

Primarily done to catch '.' and '-' but who knows what funnies will
appear in i/f names.

It's a shame that busybox ash doesn't understand :alnum:

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
lilik-openwrt-22.03
Kevin Darbyshire-Bryant 5 years ago
committed by Kevin Darbyshire-Bryant
parent
commit
c8640d1f68
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      utils/collectd/Makefile
  2. +1
    -1
      utils/collectd/files/exec-scripts/sqm_collectd.sh

+ 1
- 1
utils/collectd/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=collectd
PKG_VERSION:=5.11.0
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://collectd.org/files/ \


+ 1
- 1
utils/collectd/files/exec-scripts/sqm_collectd.sh View File

@ -9,7 +9,7 @@ handle_cake() {
local ifc ifr tin i
ifc="$1"
ifr="${ifc//./_}"
ifr="${ifc//[!0-9A-Za-z]/_}"
# Overall
json_get_vars bytes packets drops backlog qlen


Loading…
Cancel
Save