User Tools

Site Tools


Sidebar

Translations of this page:

Contacts Us

  • Contact Us

en:stb_webkit:faq:0.2.18:check_variables_at_boot_218

Attention! Beginning from firmware version 0.2.18 all customizations of embedded portal is necessary to make using source codes of portal. After all customizations complete it is necessary to make compiling and minimization of source code of portal. After compiling and minization all files of portal could be placed in home directory for further image making. Source code of portal (portal-dev-*.tgz is in directory with current release http://soft.infomir.com.ua)

Checking of environment variables

For version 0.2.18-r3

environment.check.zip

  • environment.ini - place to /home/web/ directory
  • environment.check.sh - place to rootfs directory near the /test.sh
  • test.sh - after configuration of #language - language index (int), ti is necessary to add in empty row below: source /environment.check.sh
  • /home/web/public/portal/services.js - remove comments from the next row: checkEnvVars(); uncomment this function to start environment variables check mechanism

Example of test.sh file (there is only part of file):

Example of services.js file (there is only part of file):

For version 0.2.18-r4 and higher

In directory with source portal version /system/variables/ there is file readme.md with description of work and settings configuration of environment variables checking. Archive with source portal version portal-dev-*.tgz is located in directory with release version http://soft.infomir.com.ua/<MODEL>/release/

To enable checking of environment variable:

  • Copy all file from directory /system/variables/on/ to /system/variables/;
  • Place necessary variables in file /system/variables/vars.ini;

Example of vars.ini file:

  • In rootfs directory there is test.sh. In this file it is necessary remove comment from string # . /home/web/system/variables/check.sh.
en/stb_webkit/faq/0.2.18/check_variables_at_boot_218.txt · Last modified: 2019/05/17 11:23 (external edit)