From 663453e3e0136ad9ae0a4b5c9c67c535af9b8995 Mon Sep 17 00:00:00 2001 From: Andrzej Telszewski Date: Sun, 18 Mar 2018 03:49:36 -0500 Subject: netconfig: Don't write hostname to NM config file any more Signed-off-by: Robby Workman --- netconfig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/netconfig b/netconfig index 51e88bd..3d9bf1d 100644 --- a/netconfig +++ b/netconfig @@ -362,10 +362,6 @@ done # Write the hostname with domain to /etc/HOSTNAME: echo $HOSTNM.$DOMAIN > etc/HOSTNAME -# Also make sure the hostname is written to /etc/NetworkManager/NetworkManager.conf: -if [ -w etc/NetworkManager/NetworkManager.conf ]; then - sed -i "s/^hostname=.*$/hostname=$HOSTNM/g" etc/NetworkManager/NetworkManager.conf -fi dialog --title "CONFIGURATION TYPE FOR '$HOSTNM.$DOMAIN'" \ --default-item DHCP \ -- cgit v1.2.3