aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/qos-scripts/files/usr/bin/qos-stat
Commit message (Collapse)AuthorAgeFilesLines
* qos-scripts: fix uci callback handlingTony Ambardar2018-06-281-5/+6
| | | | | | | | | | | | | | | | | The previous callback code was fragile, dependent on some UCI callback bugs and side-effects now fixed in master commit 73d8a6ab. Update scripts to use callbacks where appropriate and necessary, while using normal UCI config parsing for all else. This results in smaller, simpler, more robust code. Use callbacks in generate.sh to only process 'interface' defaults and the varying entries for 'reclassify', 'default' and 'classify' sections. Also switch qos-stat to use non-callback UCI handling. The current changes work independently of 73d8a6ab (i.e. both before and after), and are consistent with UCI config parsing documentation. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* scripts: fix wrong usage of '==' operatorJohn Crispin2014-10-141-2/+2
| | | | | | | | | | | | | | [base-files] shell-scripting: fix wrong usage of '==' operator normally the '==' is used for invoking a regex parser and is a bashism. all of the fixes just want to compare a string. the used busybox-ash will silently "ignore" this mistake, but make it portable/clean at least. this patch does not change the behavior/logic of the scripts. Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 42911
* packages: sort network related packages into package/network/Felix Fietkau2012-10-101-0/+67
SVN-Revision: 33688