[OpenWrt-Devel] [sqm-scripts] not started at boot?

Toke Høiland-Jørgensen toke at toke.dk
Sun Feb 15 10:00:56 EST 2015


Alan Jenkins <alan.christopher.jenkins at gmail.com> writes:

> It's very effective, but I notice SQM isn't applied at boot time. The
> system log complains about pppoe-wan interface not existing, when the
> sqm init script is started.

Ah, that makes sense I suppose: PPPOE is probably brought up too late
for the SQM init script to pick it up.

> qos-scripts has a hotplug script, so I copied it for sqm and the
> problem is "fixed". Though my stupid script re-runs the sqm as every
> single network interface comes up, so it spams the log and probably
> slows things down a bit. (Maybe sqm script also wants to not be so
> noisy in the log)

I'm attaching an updated version of the run.sh script which should
detect when it is run from hotplug and only apply the SQM config to the
hotplugged interface. Could you verify that this works for you? If so,
I'll push an update with the revision and include a hotplug script. :)

-Toke

-------------- next part --------------
A non-text attachment was scrubbed...
Name: run.sh
Type: text/x-sh
Size: 4091 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150215/faa23952/attachment.bin>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list