Stephan Raue <[email protected]> writes:

> yes but i dont use ubuntu. to explain a bit more, i have created an
> small embedded distribution and want use connman for networking. now i
> need an solution to setup connman from my shell based init scripts for
> static and wlan config (the config is stored in an config file). i
> have found your cmcc script inside the indicator-network package and
> it works great (this time only for wired networks).
>
> to see how i want use this look here:
> for the initial configfile:
> http://openelec.git.sourceforge.net/git/gitweb.cgi?p=openelec/openelec;a=blob;f=packages/network/connman/config/network.conf
> for the init script:
> http://openelec.git.sourceforge.net/git/gitweb.cgi?p=openelec/openelec;a=blob;f=packages/network/connman/init.d/13_network
>
> now the problem is, that cmcc will be run directly after starting
> connman, and this fails, because connman is not ready with startup so
> i must use an sleep or usleep.

Ok, now I understand the problem. Can't you just have the settings in
connman? It makes it difficult that now you have network settings in two
different places, both in network.conf and inside connman.

But to solve your problem I think one option is to make cmcc wait for
org.moblin.connman interface to appear on the bus. So it would need to
wait for this signal:

signal sender=org.freedesktop.DBus -> dest=(null destination) serial=16 
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; 
member=NameOwnerChanged
   string "org.moblin.connman"
   string ""
   string ":1.50"

-- 
Kalle Valo
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to