networkmanager: disable terminal colors by default for nmcli

Since the version 1.12, NetworkManager enables the colors in the
terminal output by default. This pretty output is not compatible
with several terminal emulators and makes it difficult to parse
the output of the CLI commands.
This patch uses the standard linux util called 'terminal-colors.d'
to disable the colors by default in the NetworkManager CLI interpeter.

https://jira.digi.com/browse/DEL-6473

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
Arturo Buzarra 2019-02-27 16:59:49 +01:00
parent bccb5890b8
commit 78360255f0
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,10 @@ do_install_append() {
-e "s,##CELLULAR_PASSWORD##,${CELLULAR_PASSWORD},g" \
${D}${sysconfdir}/NetworkManager/system-connections/nm.cellular
fi
# Disable terminal colors by default
install -d ${D}${sysconfdir}/terminal-colors.d
touch ${D}${sysconfdir}/terminal-colors.d/nmcli.disable
}
# NetworkManager needs to be started after DBUS