qosmngr: depend on existence of tool

This commit is contained in:
Sukru Senli 2020-04-19 20:08:59 +02:00
parent cd4733efa9
commit 2afe82e86b

View file

@ -62,7 +62,7 @@ bcom_get_queue_stats() {
}
get_queue_stats() {
if [ "$(db get hw.board.tm)" == "1" ]; then
if [ "$(which tmctl)" ]; then
bcom_get_queue_stats
fi
}