Hi Kalle,
Am 23.09.2010 14:34, schrieb Kalle Valo:
Stephan Raue<[email protected]> writes:
i use connman and on top of this cmcc from indicator-network package
to setup connman.
Ok, so these are ubuntu packages.
connman will be started from init script
I assume you are using recent connman ubuntu packages which use upstart
(ie. you have a file /etc/init/connman.conf).
and will be setup with the same init script via cmcc.
Sorry, I don't understand this sentence. Can you elaborate, please?
And why do you want to run cmcc on boot? That doesn't sound right to me.
after connman is started cmcc fails because connman is not up. is it
possible in any way (in an shell init script) to check if connman is
ready with starting to setup connman? i dont want use sleep or
anything
In principle upstart supports this with the "start on" stanza:
http://upstart.ubuntu.com/wiki/Stanzas
But first I would like to go backwards a bit and understand the real
problem you are trying to solve. Most probably there is a better way
than running than cmcc after connmand has started.
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.
Stephan
--
### OpenELEC.tv ###
The free and open Mediacenter Distribution 4 you
http://www.openelec.tv
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman