improved doc

This commit is contained in:
levasseur
2021-10-21 17:19:58 +02:00
parent e165b7e7e1
commit 6f4a6aa1d1
2 changed files with 6 additions and 0 deletions

View File

@@ -72,6 +72,8 @@ if system proxy is set in configuration files.
- **-s, --shell**: Launch a shell with entire script's environment for - **-s, --shell**: Launch a shell with entire script's environment for
debugging purpose. No action or modification is made to the system unless you debugging purpose. No action or modification is made to the system unless you
launch commands manually doing some. launch commands manually doing some.
- **--chroot \<path\>**: Allows you to apply init.sh test or modification on a non
running system, mounted in the given path.
- **-l, --logfile**: Specify a custom name for the log file. Standard log file - **-l, --logfile**: Specify a custom name for the log file. Standard log file
is named init-hostname-date-time.log in the log subdirectory. That file can also is named init-hostname-date-time.log in the log subdirectory. That file can also
be customized using the LOGFILE environment variable. be customized using the LOGFILE environment variable.

View File

@@ -179,6 +179,10 @@ For example, if you what to write "ATTENTION: this is a warning!" in red with
echo -e "${IRed}${On_IYellow}ATTENTION:${DEFAULTBG} this is a warning!${DEFAULTCOL}" echo -e "${IRed}${On_IYellow}ATTENTION:${DEFAULTBG} this is a warning!${DEFAULTCOL}"
``` ```
Remember to always terminate an *echo -e* using colors with the $DEFAULTCOL
variable. If not, any new line might be filled with the last used color and line
ending will filled with background color.
## 4. The filefct.sh file ## 4. The filefct.sh file
### 4.1. Functions ### 4.1. Functions
#### 4.1.1. stdtime #### 4.1.1. stdtime