mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update SQM autorate
This commit is contained in:
parent
a3fc59f80e
commit
063a468465
11 changed files with 2526 additions and 695 deletions
32
luci-app-sqm-autorate/root/usr/share/sqm-autorate/config.sh
Normal file → Executable file
32
luci-app-sqm-autorate/root/usr/share/sqm-autorate/config.sh
Normal file → Executable file
|
@ -19,7 +19,8 @@ output_processing_stats=$(uci -q get sqm.${INTERFACE}.output_processing_stats ||
|
|||
#output_cake_changes=0 # enable (1) or disable (0) output monitoring lines showing cake bandwidth changes
|
||||
output_cake_changes=$(uci -q get sqm.${INTERFACE}.output_cake_changes || echo "0")
|
||||
#debug=0 # enable (1) or disable (0) out of debug lines
|
||||
debug=$(uci -q get sqm.common.debug || echo "0")
|
||||
#debug=$(uci -q get sqm.common.debug || echo "0")
|
||||
debug=1
|
||||
|
||||
# *** STANDARD CONFIGURATION OPTIONS ***
|
||||
|
||||
|
@ -128,32 +129,3 @@ global_ping_response_timeout_s=10 # timeout to set shaper rates to min on no pin
|
|||
|
||||
if_up_check_interval_s=10 # time to wait before re-checking if rx/tx bytes files exist (e.g. from boot state)
|
||||
|
||||
# verify these are correct using 'cat /sys/class/...'
|
||||
case "${dl_if}" in
|
||||
\veth*)
|
||||
rx_bytes_path="/sys/class/net/${dl_if}/statistics/tx_bytes"
|
||||
;;
|
||||
\ifb*)
|
||||
rx_bytes_path="/sys/class/net/${dl_if}/statistics/tx_bytes"
|
||||
;;
|
||||
*)
|
||||
rx_bytes_path="/sys/class/net/${dl_if}/statistics/rx_bytes"
|
||||
;;
|
||||
esac
|
||||
|
||||
case "${ul_if}" in
|
||||
\veth*)
|
||||
tx_bytes_path="/sys/class/net/${ul_if}/statistics/rx_bytes"
|
||||
;;
|
||||
\ifb*)
|
||||
tx_bytes_path="/sys/class/net/${ul_if}/statistics/rx_bytes"
|
||||
;;
|
||||
*)
|
||||
tx_bytes_path="/sys/class/net/${ul_if}/statistics/tx_bytes"
|
||||
;;
|
||||
esac
|
||||
|
||||
if (( $debug )) ; then
|
||||
echo "DEBUG: rx_bytes_path: $rx_bytes_path"
|
||||
echo "DEBUG: tx_bytes_path: $tx_bytes_path"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue