2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Hardcode tc path so we can run the script as non-root

This commit is contained in:
Nye Liu 2016-10-26 14:08:34 -07:00
parent 22f9fa51a7
commit 31bedc0822

View File

@ -16,7 +16,7 @@
DEVICE=${0##*/tc_}
mytc() {
tc -s class show dev $1 | tr "\n" "|" | sed "s/ \+/ /g" | sed "s/ |/|/g" | sed "s/| /|/g" | sed "s/||/\n/g" | sed "s/|/ /g" | tr ":" "_" | grep -v -i sfq | sort -n
/sbin/tc -s class show dev $1 | tr "\n" "|" | sed "s/ \+/ /g" | sed "s/ |/|/g" | sed "s/| /|/g" | sed "s/||/\n/g" | sed "s/|/ /g" | tr ":" "_" | grep -v -i sfq | sort -n
}
case $1 in