Re: [OpenWrt-Devel] About the new netifd infrastructure

2012-06-06 Thread Roberto Riggio
On 06/02/2012 06:53 PM, Felix Fietkau wrote: >> - available=1 ??? > available=1 means that the interface can be brought up immediately > instead of having to wait for an external trigger (usually only used > together with no_device; if the interface is bound to a device, device > presence controls

Re: [OpenWrt-Devel] About the new netifd infrastructure

2012-06-02 Thread Felix Fietkau
On 2012-05-31 9:56 AM, Roberto Riggio wrote: > On 05/30/2012 04:09 PM, Felix Fietkau wrote: >> Do you have any call to proto_init_update/proto_send_update in there, >> similar to what the dhcp script does when it has acquired a lease? > > Hi, thanks for the feedback. I'm making some progresses now

Re: [OpenWrt-Devel] About the new netifd infrastructure

2012-05-31 Thread Roberto Riggio
On 05/30/2012 04:09 PM, Felix Fietkau wrote: Do you have any call to proto_init_update/proto_send_update in there, similar to what the dhcp script does when it has acquired a lease? Hi, thanks for the feedback. I'm making some progresses now. This is the current script: #!/bin/sh [ -n "$INC

Re: [OpenWrt-Devel] About the new netifd infrastructure

2012-05-30 Thread Felix Fietkau
On 2012-05-30 3:54 PM, Roberto Riggio wrote: > On 05/30/2012 03:12 PM, Felix Fietkau wrote: >> Please post the full script. What does 'ifstatus mesh' show? > > This is the skeleton of the script > > #!/bin/sh > > [ -n "$INCLUDE_ONLY" ] || { > . /etc/functions.sh > . ../netifd-p

Re: [OpenWrt-Devel] About the new netifd infrastructure

2012-05-30 Thread Roberto Riggio
On 05/30/2012 03:12 PM, Felix Fietkau wrote: Please post the full script. What does 'ifstatus mesh' show? This is the skeleton of the script #!/bin/sh [ -n "$INCLUDE_ONLY" ] || { . /etc/functions.sh . ../netifd-proto.sh init_proto "$@" } proto_wing_init_config() {

Re: [OpenWrt-Devel] About the new netifd infrastructure

2012-05-30 Thread Felix Fietkau
On 2012-05-30 12:27 PM, Roberto Riggio wrote: > Hi, > > I'm trying to adapt a package (wing, a routing protocol for WMN) to the > new netifd infrastructure. > > I defined a new protocol by adding a new script in /lib/netfid/proto > called wing.sh. The script (inspired by dhcp.sh) defines the fo

[OpenWrt-Devel] About the new netifd infrastructure

2012-05-30 Thread Roberto Riggio
Hi, I'm trying to adapt a package (wing, a routing protocol for WMN) to the new netifd infrastructure. I defined a new protocol by adding a new script in /lib/netfid/proto called wing.sh. The script (inspired by dhcp.sh) defines the following functions: proto_wing_init_config() proto_wing_