squidbilly
Occasional Visitor
AutoBW
Automatically set QoS BandWidth
Last Updated on 4/5/2020 to v1.5
Set QoS upload/download bandwidth using spdMerlin (via Ookla speedtests)
Requires bc and spdMerlin (v3.3.2 or greater)
Execute the following command to download:
v1.0 (3/25/2020): Initial Release
v1.1 (4/01/2020): Complete rewrite
-No longer requires bash
-Checks that bc is installed & QoS enabled & upload traffic is directed to unthrottled class
-No need to stop/start QoS
-Class rates/ceils are scaled
v1.2 (4/03/2020): More changes
-Check for spdMerlin
-Formatted logger message concerning new BW
-Check for appropriate iptable rules that ensure spdMerlin traffic in unaffected by QoS
v1.3 (4/03/2020): Changed an important check
-Check for spdMerlin v3.3.2 or greater to ensure that QoS will not interfere with calculated speeds
v1.4 (4/03/2020): Added option for automatic updates (Thanks maghuro)
-If turned on, check for updates. If found then update.
-AutoUpdate is off by default and must be turned on
-TestMode is on by default and must be turned off
-Fixed scenario where previous bandwidths were zero. In this case, just set the scale factors to 1 since we cannot divide by zero
v1.5 (4/05/2020): Now handles VPN and Gbps|Mbps|Kbps rates/ceils
-Use VPN values, if defined (thanks maghuro)
-Handle rate/ceil units other than just Kbps (thanks peepsnet)
Thanks to:
FreshJR: Some of the functionality was either taken directly or adapted from the excellent work found in the Adaptive QoS script.
Jack Yaz: For spdMerlin and other input.
Merlin
Creating this small, minor script has shown me just how much time and effort must be devoted to the larger projects that I routinely use.
Automatically set QoS BandWidth
Last Updated on 4/5/2020 to v1.5
Set QoS upload/download bandwidth using spdMerlin (via Ookla speedtests)
Requires bc and spdMerlin (v3.3.2 or greater)
Execute the following command to download:
Code:
curl "https://raw.githubusercontent.com/squidbillyms/AutoBW/master/AutoBW" -o /jffs/scripts/AutoBW && chmod 755 AutoBW
v1.0 (3/25/2020): Initial Release
v1.1 (4/01/2020): Complete rewrite
-No longer requires bash
-Checks that bc is installed & QoS enabled & upload traffic is directed to unthrottled class
-No need to stop/start QoS
-Class rates/ceils are scaled
v1.2 (4/03/2020): More changes
-Check for spdMerlin
-Formatted logger message concerning new BW
-Check for appropriate iptable rules that ensure spdMerlin traffic in unaffected by QoS
v1.3 (4/03/2020): Changed an important check
-Check for spdMerlin v3.3.2 or greater to ensure that QoS will not interfere with calculated speeds
v1.4 (4/03/2020): Added option for automatic updates (Thanks maghuro)
-If turned on, check for updates. If found then update.
-AutoUpdate is off by default and must be turned on
-TestMode is on by default and must be turned off
-Fixed scenario where previous bandwidths were zero. In this case, just set the scale factors to 1 since we cannot divide by zero
v1.5 (4/05/2020): Now handles VPN and Gbps|Mbps|Kbps rates/ceils
-Use VPN values, if defined (thanks maghuro)
-Handle rate/ceil units other than just Kbps (thanks peepsnet)
Thanks to:
FreshJR: Some of the functionality was either taken directly or adapted from the excellent work found in the Adaptive QoS script.
Jack Yaz: For spdMerlin and other input.
Merlin
Creating this small, minor script has shown me just how much time and effort must be devoted to the larger projects that I routinely use.
Last edited: