Open peteruithoven opened 9 years ago
Accessing utilities like iwinfo through ubus might also be interesting, see: http://wiki.openwrt.org/doc/techref/ubus#lua_module_for_ubus https://forum.openwrt.org/viewtopic.php?id=57554
De nieuwe Luci (LuCI2) lijkt ook ubus over http te gebruiken? http://wiki.openwrt.org/doc/techref/luci2 http://wiki.openwrt.org/doc/techref/ubus#access_to_ubus_over_http
Someone on the mailinglist suggested writing a hotplug script instead of an init script. http://www.bangmoney.org/posts/2004-10-08-hotplug.html If I understand the OpenWRT wiki hotplug is replaced by procd: http://wiki.openwrt.org/doc/techref/hotplug This page on procd init scripts seems relevant: http://wiki.openwrt.org/inbox/procd-init-scripts
procd will call '/sbin/hotplug $args' which is invoked from netifd via ubus...(hope you are confused now...) 8-)
More on hotplug: http://wiki.openwrt.org/doc/techref/hotplug
Currently our network / wifi related code is very fragile and entangled with the Doodle3D-firmware code.
We currently rely on checking certain files (like /sys/class/net/wlan0/address), we use the iwinfo lua binding, ifconfig.