<div dir="ltr"><div>Thanks, Bastian. If I add a script /etc/hotplug.d/net/ I get up/down events for WLAN interfaces when /sbin/wifi is run.</div><div><br></div><div>The hotplug scripts receive events for interface names, but they know nothing about the underlying configuration. Is there any way to map a WLAN interface name, e.g. wlan0, to the corresponding UCI config entry in /etc/config/wireless?</div><div><br></div><div>Johan</div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 12, 2014 at 10:53 AM, Bastian Bittorf <span dir="ltr"><<a href="mailto:bittorf@bluebottle.com" target="_blank">bittorf@bluebottle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">* Johan Almbladh <<a href="mailto:ja@anyfi.net" target="_blank">ja@anyfi.net</a>> [12.11.2014 10:45]:<br>
<span>> I tried just doing "ubus listen" in one shell and then running "wifi" from<br>
> another, but that doesn't give much to go on:<br>
<br>
</span>which events do you need?<br>
<br>
a joining or leaving station?<br>
use 'iw event'<br>
<br>
an upcoming (or going down) interface?<br>
use '/etc/hotplug.d/iface/$yourscript'<br>
<br>
bye, bastian<br>
</blockquote></div><br></div></div></div>