Thank you! As an additional alternative and something that I decide to go
with (as I did not want to rely on the system to always shutdown
successfully ) is to use systemd-tmpfiles (
http://www.freedesktop.org/software/systemd/man/systemd-tmpfiles.html).
This lets me place a default settings file in /var/lib/connman before
connman is started by the system during boot.

Best,

 Ernast

On Mon, Nov 24, 2014 at 2:22 AM, Patrik Flykt <[email protected]>
wrote:

>
>         Hi,
>
> On Fri, 2014-11-21 at 09:30 -0500, Ernast Sevo wrote:
> > Hello,
> >
> >  I am attempting to figure out if it is possible to disable
> > wifi/bluetooth/cellular through connman on startup so when system boots
> > those technologies will not be powered until they are explicitly turned
> on
> > by user. I can achieve this by disabling the technologies in
> > /var/lib/connman/settings however connman updates this once technologies
> > are enabled and if the system shuts down with these technologies enabled
> it
> > will boot with them enabled as well. Is there a way in connman to ensure
> > that on boot certain technologies remain disabled regardless of the state
> > they were in prior to shutdown?
>
> Writing values directly to the settings file will always most certainly
> always fail. Turn off technologies via the D-Bus API or connmanctl;
> after that ConnMan will remember the technology state on next startup.
>
> If you want the technologies to be always powered off the next time
> ConnMan starts, you have to add a call to e.g. 'connmanctl disable
> <technology>' in the shutdown part of your init script or similar.
>
> Cheers,
>
>         Patrik
>
> _______________________________________________
> connman mailing list
> [email protected]
> https://lists.connman.net/mailman/listinfo/connman
>
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to