Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ OpenWrt Packages:
```lang-sh
bash
coreutils-timeout
curl
netdata
```

Expand Down
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ if [ ! -f "/bin/bash" ]; then
return 1
fi

if [ ! -f "/usr/bin/curl" ]; then
echo "Curl is not found. Please run 'opkg update; opkg install curl' first."
return 1
fi

if [ ! -f "/usr/bin/timeout" ]; then
echo "Coreutils-timeout is not found. Please run 'opkg update; opkg install coreutils-timeout' first."
return 1
Expand Down
7 changes: 5 additions & 2 deletions sqm-chart/sqm.chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ sqm_create_tins() {
diffserv4)
sqm_tns[$ifc]="BKBEVIVO"
;;
diffserv5)
sqm_tns[$ifc]="LEBKBEVIVO"
;;
*)
sqm_tns[$ifc]="T0T1T2T3T4T5T6T7"
;;
Expand Down Expand Up @@ -227,7 +230,7 @@ sqm_get() {
sqm_set_overall
sqm_set_tins
;;
mq)
mq|fq_codel)
sqm_set_overall
;;

Expand Down Expand Up @@ -278,7 +281,7 @@ sqm_create() {
sqm_create_overall "$ifc" "$offset"
sqm_create_tins "$ifc" "$offset"
;;
mq)
mq|fq_codel)
sqm_create_overall "$ifc" "$offset"
;;

Expand Down
2 changes: 1 addition & 1 deletion sqm-chart/sqm.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# the SQM interface(s) to monitor
declare -a sqm_ifc=("eth0")
declare -a sqm_ifc=("eth0" "ifb4eth0")

# the priority is used to sort the charts on the dashboard
# 1 = the first chart
Expand Down