Hi, When connman starts, it clears those interfaces that are already up in order to get a fresh start. The cleanup is not needed if the interface is already provisioned like when IP address is set via kernel command line and we have a .config file with same IP address. This issue was seen in Yocto generated qemu images.
Patch 1 introduces support function in config.c which checks if the IP address is provisioned via .config file. Patch 2 modifies the cleanup routine in device.c. If the interface address is found to be the same as the provisioned address, we just skip the initialization of that interface. Cheers, Jukka Jukka Rissanen (2): config: Add function to check if IP address is provisioned device: Do not cleanup already provisioned interfaces src/config.c | 31 +++++++++++++++++++++++++++++++ src/connman.h | 1 + src/device.c | 22 ++++++++++++++++++++++ src/main.c | 2 +- 4 files changed, 55 insertions(+), 1 deletion(-) -- 1.7.11.7 _______________________________________________ connman mailing list [email protected] https://lists.connman.net/mailman/listinfo/connman
