[LEDE-DEV] [PATCH netifd] interface: add new "ifup-failed" hotplug event

Martin Schiller ms at dev.tdt.de
Sun May 7 21:12:06 PDT 2017


On 2017-05-06 14:47, Jo-Philipp Wich wrote:
> Hi,
> 
>> Are there any comments about this patch?
> 
> can't you achieve the same by simply watching ifdown events and 
> checking
> ifstatus/devstatus indicators?

No, unfortunately not. An ifdown event is only generated when the 
interface has already been up:

https://git.lede-project.org/?p=project/netifd.git;a=blob;f=interface.c;h=593b0490c85d8cc30dd338979aaea6b560e50866;hb=HEAD#l269

So, in a situation where a interface can't be established (e.g. wrong 
username/password) there won't be any event.




More information about the Lede-dev mailing list