<div dir="auto">What is the reason that creating a script in /etc/hotplug.d/iface/ that checks $ACTION and $DEVICENAME doesn't solve for this use case?<div dir="auto"><a href="https://openwrt.org/docs/guide-user/base-system/hotplug" target="_blank" rel="noreferrer">https://openwrt.org/docs/guide-user/base-system/hotplug</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 20, 2020, 11:02 AM Felix Fietkau <<a href="mailto:nbd@nbd.name" target="_blank" rel="noreferrer">nbd@nbd.name</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2020-03-20 15:21, Florian Eckert wrote:<br>
> network<br>
>>> With this change we can decide if this is a user interaction with <br>
>>> CLI/LuCI,<br>
>>> because with the new callback mechanism I can set/delete a uci config <br>
>>> flag so<br>
>>> that the connection should really disconnected. And so does not <br>
>>> restart on a<br>
>>> failed connetion tracking again because the uci config flag is not <br>
>>> set.<br>
>>> <br>
>>> Signed-off-by: Florian Eckert <<a href="mailto:fe@dev.tdt.de" rel="noreferrer noreferrer" target="_blank">fe@dev.tdt.de</a>><br>
>> netifd already tracks for every interface if the user requested it to <br>
>> be<br>
>> enabled or not via the 'autostart' flag, which you can query via ubus.<br>
> <br>
> I know this is done wit the uci option auto for this interface.<br>
> But if I disable this flag, then on the next boot this interface does <br>
> not start<br>
> on boot anymore. I have to start this manual. So I think this is not an <br>
> option.<br>
No, I'm talking about the internal per-interface 'autostart' variable,<br>
which gets set to false if the user does a manual ifdown of an interface<br>
(but not if it just failed to start up).<br>
It's not backed by configuration and you can query it via ubus.<br>
(e.g. ifstatus wan)<br>
<br>
- Felix<br>
<br>
<br>
_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org" rel="noreferrer noreferrer" target="_blank">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/mailman/listinfo/openwrt-devel" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.openwrt.org/mailman/listinfo/openwrt-devel</a><br>
</blockquote></div>