Dear Community Members,
After struggling quite a while with the current qos-scripts (and luci-app-qos), I decided to modify the package and simplify it.
You can find the result here: https://github.com/zcecc22/qos-scripts-v2
Most of the changes have been carried out in the "tcrules.awk" file which is responsible for setting up the HSFC lines. The idea of the modification was to remove the obscure calculations present in it originally and leverage the parameters passed from the "qos" config file directly.
Now, all traffic classes defined in config file will yield a Realtime and Linkshare service curve. If desired, the service curve are passed a delay (the packetdelay in ms) which gives an m1 of 0 and d of X ms. m2 takes the avgrate parameter for the RT SC and priority for the LS SC.
Overall, this file gives more control as shown in my sample qos file.
I look forward your feedback, feel free to ask for support.