My issue is that when I install or uninstall an application, the only field kept (regarding the modemServices section) is "modemServices" { "modemDataConnection" { "internet" { "accessPointName" "xxxxxxx" } } }
Did i set correctly the configuration tree ?
Do you know how I can solve this issue ?
We would recommend users to use the ‘config’ tool whenever modifying the configDB. Modifying the configDB in /opt/legato/configTree/system.xxxx is more prone to errors if something is incorrect in the entry.
Since there is currently a configDB related bug in 14.04 (which is fixed for next update on github), please try the following to create the configDB with the same specs mentioned above.
Delete /modemServices (clean slate)
legato restart
Now we can create the entries identical to the one above (system.xxxx file)
root@swi-mdm9x15:/# config set /modemServices/modemDataConnection/internet/accessPointName xxxxxxx
root@swi-mdm9x15:/# config set /modemServices/modemDataConnection/internet/authentication/pap/enable false bool
root@swi-mdm9x15:/# config set /modemServices/modemDataConnection/internet/authentication/pap/userName xxxxxxx
root@swi-mdm9x15:/# config set /modemServices/modemDataConnection/internet/authentication/pap/password xxxxxxx
root@swi-mdm9x15:/# config set /modemServices/modemDataConnection/internet/authentication/chap/enable true bool
root@swi-mdm9x15:/# config set /modemServices/modemDataConnection/internet/authentication/chap/userName xxxxxxx
root@swi-mdm9x15:/# config set /modemServices/modemDataConnection/internet/authentication/chap/password xxxxxxx
Indeed, the solution was to use the config tool. I set the fields in the configuration database as you advised me to do, and now I can install/uninstall application without having the modemServices branch in the configTree file removed.
There is some typo in the documentation though. The help is displayed correctly in the console
[code]root@swi-mdm9x15:~# config help
Usage:
To read a value:
config get
To write a value:
config set []
To delete a node:
config delete
To import config data:
config import
To export config data:
config export
Where:
: Is a path to the tree and node to operate on.
: Path to the file to import from or export to.
: Is a string value to write to the config tree.
: Is optional and mmust be one of bool, int, or string.
If type is bool, then value must be either true or false.
If unspecified, the default type will be string.
A tree path is specified similarly to a *nix path.
For example:
/a/path/to/somewhere
The configTree supports multiple trees, a default tree is given per user.
If the config tool is run as root, then alternative trees can be specified
in the path by giving a tree name, then a colon and the value path as
normal.
As an example, here's of the previous paths, but selecting the tree named
'foo' instead of the default tree:
foo:/a/path/to/somewhere