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-proto.sh
> init_proto "$@"
> }
>
> proto_wing_init_config() {
> logger "wing init"
> no_device=1
> available=1
> proto_config_add_string "ipaddr"
> }
>
> proto_wing_teardown() {
> ...
> }
>
> proto_wing_setup() {
> logger "wing setup"
> ...
> }
>
> [ -n "$INCLUDE_ONLY" ] || {
> add_protocol wing
> }
>
> the output of ifstatus mesh is:
> {
> "up": false,
> "pending": true,
> "available": true,
> "autostart": true,
> "data": {
>
> }
> }
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?
- Felix
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel