Send connman mailing list submissions to
        connman@lists.01.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        connman-requ...@lists.01.org

You can reach the person managing the list at
        connman-ow...@lists.01.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. Aw: Re: Is there a way to store static IP configuration
      without editing config files? (Andreas Koller)
   2. Re: Is there a way to store static IP configuration without
      editing config files? (Daniel Wagner)
   3. Re: Aw: Re: Is there a way to store static IP configuration
      without editing config files? (Daniel Wagner)


----------------------------------------------------------------------

Message: 1
Date: Mon, 12 Mar 2018 20:51:50 +0100
From: "Andreas Koller" <kollergef...@gmx.de>
To: connman@lists.01.org
Subject: Aw: Re: Is there a way to store static IP configuration
        without editing config files?
Message-ID:
        
<trinity-a36e9001-2f5c-4a6d-b880-b6f6bea31386-1520884310851@3c-app-gmx-bs48>
        
Content-Type: text/plain; charset=UTF-8

> So there is no persistence between boots without provisioning configuration 
> files
> and changing the properties using dbus/connmanctl is meant to be temporary?

Tried another system, that uses systemd instead of sysvinit.
There configuration works as expected.
I can set a static IP using dbus/connmanctl and it stays static after reboot.
Also the /var/lib/connman/ethernet_MAC_cable/settings file is updated 
immediately.

Do newer connman versions  depend on systemd?

Thank you for your help.




------------------------------

Message: 2
Date: Tue, 13 Mar 2018 00:19:41 +0100
From: Daniel Wagner <w...@monom.org>
To: Andreas Koller <kollergef...@gmx.de>
Cc: connman@lists.01.org
Subject: Re: Is there a way to store static IP configuration without
        editing config files?
Message-ID: <7e2729fd-74c6-f7c6-f5d5-9d97dfd4b...@monom.org>
Content-Type: text/plain; charset=utf-8

On 03/12/2018 03:21 PM, Andreas Koller wrote:
>> You should not edit the /var/lib/connman/ethernet_MAC_cable/settings by 
>> hand. ConnMan will overwrite them now and then. Though you can write 
>> provisioning configuration file.
> 
> So there is no persistence between boots without provisioning configuration 
> files
> and changing the properties using dbus/connmanctl is meant to be temporary?

Maybe we are talking past each other. ConnMan stores the current
configuration /var/lib/connman/ethernet_MAC_cable/settings. The current
configuration means the stuff you tell ConnMan via D-Bus. Any change via
D-Bus will be stored into settings immediately. So it is persistent. If
you try to modify the settings file by hand and ConnMan is running in
the background your change will be overwritten.

On the other hand, the provisioning file is under control of the user.
So if you don't want to configure your system via D-Bus for some reason
you can use the provisioning 'interface'.

>>> under /var/lib/connman/ and how can it be forced (if possible)?
>> forced to what?
> 
> To create /var/lib/connman/ethernet_MAC_cable/settings files after sending 
> configuration changes using dbus.

Consider settings as a binary file and you should not modify yourself.
Obviously, you could create a settings file when ConnMan doesn't run but
this is not really a supported way to do things.

> If not for providing persistence - what is the purpose of those 
> /var/lib/connman/ethernet_MAC_cable/settings files?
> Connman doesn't seem to rely on their existence and it's unclear to me, when 
> and why they are written at all.

I hope I answered the question above.


------------------------------

Message: 3
Date: Tue, 13 Mar 2018 14:28:08 +0100
From: Daniel Wagner <w...@monom.org>
To: Andreas Koller <kollergef...@gmx.de>
Cc: connman@lists.01.org
Subject: Re: Aw: Re: Is there a way to store static IP configuration
        without editing config files?
Message-ID: <20a23c6a-297f-2de5-8a79-a1d27c476...@monom.org>
Content-Type: text/plain; charset=utf-8

On 03/12/2018 08:51 PM, Andreas Koller wrote:
>> So there is no persistence between boots without provisioning configuration 
>> files
>> and changing the properties using dbus/connmanctl is meant to be temporary?
> 
> Tried another system, that uses systemd instead of sysvinit.
> There configuration works as expected.
> I can set a static IP using dbus/connmanctl and it stays static after reboot.
> Also the /var/lib/connman/ethernet_MAC_cable/settings file is updated 
> immediately.

Glad this works for you.

> Do newer connman versions  depend on systemd?

Not intentionally. There might be an unknown bug but there is no reason
why ConnMan shouldn't work with a sysvinit based system. I guess there
are plenty of Yocto based images with ConnMan out there.


------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
connman@lists.01.org
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 29, Issue 12
***************************************

Reply via email to