diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-06 17:38:48 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-06 17:38:48 +0000 |
commit | 19b00416ab85605ef56cc2123aabfba8049992c6 (patch) | |
tree | c9fe5a99c04535a971d100549cad164553a01c2c /package/qos-scripts/files/usr/bin/qos-stat | |
parent | a2aa7e5779e09f4399d4e5bc2d51d982bc117a91 (diff) | |
download | upstream-19b00416ab85605ef56cc2123aabfba8049992c6.tar.gz upstream-19b00416ab85605ef56cc2123aabfba8049992c6.tar.bz2 upstream-19b00416ab85605ef56cc2123aabfba8049992c6.zip |
add qos-scripts package port for buildroot-ng
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4935 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/qos-scripts/files/usr/bin/qos-stat')
-rwxr-xr-x | package/qos-scripts/files/usr/bin/qos-stat | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/qos-scripts/files/usr/bin/qos-stat b/package/qos-scripts/files/usr/bin/qos-stat new file mode 100755 index 0000000000..fc940a8218 --- /dev/null +++ b/package/qos-scripts/files/usr/bin/qos-stat @@ -0,0 +1,16 @@ +#!/bin/sh +echo '#################' +echo '# EGRESS STATUS #' +echo '#################' +echo +for iface in $(tc qdisc show | grep hfsc | awk '{print $5}' | grep -v imq); do + tc -s class show dev "$iface" +done + +echo '##################' +echo '# INGRESS STATUS #' +echo '##################' +echo +for iface in $(tc qdisc show | grep hfsc | awk '{print $5}' | grep imq); do + tc -s class show dev "$iface" +done |