From 6f4a6aa1d1ada554375dd388e070b8ed30303e0f Mon Sep 17 00:00:00 2001 From: levasseur Date: Thu, 21 Oct 2021 17:19:58 +0200 Subject: [PATCH] improved doc --- README.md | 2 ++ doc/dev.md | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 936d33e..02109ea 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,8 @@ if system proxy is set in configuration files. - **-s, --shell**: Launch a shell with entire script's environment for debugging purpose. No action or modification is made to the system unless you launch commands manually doing some. +- **--chroot \**: 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 is named init-hostname-date-time.log in the log subdirectory. That file can also be customized using the LOGFILE environment variable. diff --git a/doc/dev.md b/doc/dev.md index 9fd8407..7b5a243 100644 --- a/doc/dev.md +++ b/doc/dev.md @@ -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}" ``` +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.1. Functions #### 4.1.1. stdtime