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:
parent
22f9fa51a7
commit
31bedc0822
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user