From 1757ad78136a249f90c36253a32b90eb906e5123 Mon Sep 17 00:00:00 2001 From: shawn_he Date: Fri, 5 Aug 2022 11:41:43 +0800 Subject: [PATCH] update doc Signed-off-by: shawn_he --- en/device-dev/subsystems/subsys-boot-init-cfg.md | 10 +++++----- en/device-dev/subsystems/subsys-boot-init-jobs.md | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/en/device-dev/subsystems/subsys-boot-init-cfg.md b/en/device-dev/subsystems/subsys-boot-init-cfg.md index b0d114b0e3..584595c324 100644 --- a/en/device-dev/subsystems/subsys-boot-init-cfg.md +++ b/en/device-dev/subsystems/subsys-boot-init-cfg.md @@ -4,13 +4,13 @@ The init configuration file is in JSON format and is used to configure commands and services required for system startup. Upon system startup, the Init process parses the init configuration file and runs the commands in it to start the corresponding services. ### Basic Concepts 1. Group configuration file: A group configuration file is named in the format of **device.xxxx.group.cfg**. It consists of three parts, **jobs**, **services**, and **groups**. It is available only for the standard system. Such a file is used to configure the jobs and services that can be executed. The partition that holds the file is determined based on the **bootgroup** attribute in cmdline. Currently, the following groups are supported: - - ​device.boot.group: default configuration, which is used to trigger all jobs and services in the configuration file. - - device.charge.group: charge mode, which is used to trigger only the allowed jobs and services in the configuration file. + - ​**device.boot.group**: default configuration, which is used to trigger all jobs and services in the configuration file. + - **device.charge.group**: charge mode, which is used to trigger only the allowed jobs and services in the configuration file. 2. Startup configuration file: **init.cfg** file, which consists of three parts, **jobs**, **services**, and **import**. - - services (for the Linux kernel only): native services supported by the system. For details about the service configuration, see [Service Management](subsys-boot-init-service.md). - - jobs: collection of commands to be executed. For details about jobs, see [Job Management](subsys-boot-init-jobs.md). - - import (for the Linux kernel only). command used to import **.cfg** files. It helps reduce the size of **.cfg** files for implementing different functions. + - **services** (for the Linux kernel only): native services supported by the system. For details about the service configuration, see [Service Management](subsys-boot-init-service.md). + - **jobs**: collection of commands to be executed. For details about jobs, see [Job Management](subsys-boot-init-jobs.md). + - **import** (for the Linux kernel only): command used to import **.cfg** files. It helps reduce the size of **.cfg** files for implementing different functions. ### Constraints Only the small system and standard system are supported. diff --git a/en/device-dev/subsystems/subsys-boot-init-jobs.md b/en/device-dev/subsystems/subsys-boot-init-jobs.md index bf93bf0815..522eeab708 100644 --- a/en/device-dev/subsystems/subsys-boot-init-jobs.md +++ b/en/device-dev/subsystems/subsys-boot-init-jobs.md @@ -67,10 +67,10 @@ A job is a command set, where you can manage the commands to be executed. A maxi chmod - chmod *permission* *target*
Example:
chmod 0600 /storage/myFile.txt
chmod 0750 /storage/myDir + chmod permission target
Example:
chmod 0600 /storage/myFile.txt
chmod 0750 /storage/myDir - Modifies the permission, which must be in the **0*****xxx*** format. **chmod**, *permission*, and *target* must be separated by only one space. + Modifies the permission, which must be in the **0****xxx** format. **chmod**, permission, and target must be separated by only one space. Small and standard systems -- GitLab