[OpenWrt-Devel] Hooks on wifi up/down for starting/stopping dependent functionality?

Johan Almbladh ja at anyfi.net
Wed Nov 12 04:32:27 EST 2014


I'm trying to start/stop our Wi-Fi sharing daemons [1] in tandem with wifi
up/down. On AA we used to patch /sbin/wifi, but on BB it seems this logic
has moved into netifd and that it may be possible to do it patchless,
perhaps by monitoring ubus for some event?

I tried just doing "ubus listen" in one shell and then running "wifi" from
another, but that doesn't give much to go on:

  { "ubus.object.remove": {"id":-1034588819,"path":"hostapd.wlan0"} }
  { "ubus.object.add": {"id":-522709706,"path":"hostapd.wlan0"} }

Is it possible to register with netifd or something to get more events?

1. Anyfi.net architecture <http://anyfi.net/documentation#architecture>

Many thanks,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20141112/02208de8/attachment.htm>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list