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:
parent
bccb5890b8
commit
78360255f0
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue