From 78360255f0cac2c107abbc8be70ba58a01937562 Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Wed, 27 Feb 2019 16:59:49 +0100 Subject: [PATCH] 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 --- .../networkmanager/networkmanager_%.bbappend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-digi-dey/recipes-connectivity/networkmanager/networkmanager_%.bbappend b/meta-digi-dey/recipes-connectivity/networkmanager/networkmanager_%.bbappend index c728062e1..df4a61e9d 100644 --- a/meta-digi-dey/recipes-connectivity/networkmanager/networkmanager_%.bbappend +++ b/meta-digi-dey/recipes-connectivity/networkmanager/networkmanager_%.bbappend @@ -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