Rongqing Li <[email protected]> writes: >>> Do you have any advice? >> >> I would split the cmdline generation into a dedicated one-shot service; >> e.g. modify the original connman.service to have something like > ... > I test your method, but failed to start connmand, > it always report "hand over timeout", I think > it is caused by which the script run slow.
strange; I just tested it with --- connman.service --- [Unit] Description=Connection service After=syslog.target Wants = connman-env.service [Service] Type=dbus BusName=net.connman EnvironmentFile = -/run/connmand.env ExecStart=/usr/sbin/connmand -n $CONNMAND_OPTS [Install] WantedBy=multi-user.target --- connman-env.service --- [Unit] Before = connman.service ConditionKernelCommandLine = root=/dev/nfs [Service] Type = oneshot ExecStart = /bin/sh -c 'echo CONNMAND_OPTS=\\"--noipconfig=eth0\\" > /run/connmand.env' [Install] WantedBy = connman.service which works fine. Of course, this is just a quick hack and needs some changes (replacement of inline shell script, perhaps setting RemainAfterExit, using 'systemctl enable' instead of 'Wants = connman-env.service') Enrico _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
