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>
This commit is contained in:
parent
0ec076cf56
commit
c8640d1f68
2 changed files with 2 additions and 2 deletions
|
@ -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/ \
|
||||
|
|
|
@ -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…
Reference in a new issue