Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

User and default configuration initialization

Syscfg_create.exe executable create executable creates shared memory with user configuration data (/nvram/syscfg.db). This is present in the code base at the location /ccsp/utopia/source/syscfg

Apply_system_defaults .exe executable reads the data from system_defaults file (path: /etc/utopia/system_defaults) and compares with syscfg.db, in case of any data is missing in syscfg, those defaults are written in to shared memory. On start of any module, data is read from the shared memory during initialization.

If syscgf.db does not exists (e.g in case of factory reset) apply_system_defaults.exe default executable writes all default data on to shared memory and syscfg_commit() gets called which in turn creates syscgf.db.

...