From 14ebb2fb93dfa5c3669b21f9e9618edea9d71f99 Mon Sep 17 00:00:00 2001 From: bcambl Date: Sat, 1 Dec 2018 12:08:48 -0600 Subject: [PATCH] remove 'System' from NetworkManager connection name Signed-off-by: bcambl --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 4ac5ebd1..4cb2a467 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -857,7 +857,7 @@ setStaticIPv4() { fi # if an ifcfg config does not exists for the interface name, try the connection name via network manager if is_command nmcli && nmcli general status &> /dev/null; then - CONNECTION_NAME=$(nmcli dev show "${PIHOLE_INTERFACE}" | grep 'GENERAL.CONNECTION' | cut -d: -f2 | xargs | tr ' ' '_') + CONNECTION_NAME=$(nmcli dev show "${PIHOLE_INTERFACE}" | grep 'GENERAL.CONNECTION' | cut -d: -f2 | sed 's/^System//' | xargs | tr ' ' '_') if [[ -f "/etc/sysconfig/network-scripts/ifcfg-${CONNECTION_NAME}" ]];then # If it exists, IFCFG_FILE=/etc/sysconfig/network-scripts/ifcfg-${CONNECTION_NAME}