PSA: using darkstat on any non-default interface requires editing the init script

I am (still) trying to troubleshoot phantom data usage on my wwan/qmimuxN interface, seems to be a failover / mwan3 problem. While doing so, I found that the darkstat package will not start properly when configured for a non-default interface such as qmimux0.

I did find a workaround:

vi /etc/init.d/darkstat

change line 41 to:

network_get_device ifname "$interface" || ifname="$interface"

see

1 Like

Since nobody has replied to this, before the topic is auto-closed I will just say that this has been working well for me, hopefully the change will be eventually baked into the package directly.

Hello,

darkstat works fine on recent openwrt versions and a non-default interface without the workaround. The basic scripts from /lib/functions/network.sh are identical, the cause must be somewhere else.

Regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.