2 .
/usr
/share
/libubox
/jshn.sh
5 tc
-s qdisc sh dev
"$1" root
10 json_get_vars ifname ingress egress
12 [ -n "$ifname" ] ||
return
14 [ "$egress" -gt 0 ] && {
18 [ "$ingress" -gt 0 ] && {
19 echo "ingress status:"
20 dev_status
"$(printf %.16s "ifb-
$ifname")"
27 [ "${active:-0}" -gt 0 ]
41 echo "===== device $name: $status ====="
43 is_active
&& common_status
55 elif ubus
-S -t 0 wait_for
"network.interface.$name"; then
61 echo "===== interface $name: $status ====="
63 is_active
&& common_status
68 json_load
"$(ubus call qosify status)"
69 json_for_each_item device_status devices
70 json_for_each_item interface_status interfaces