summaryrefslogtreecommitdiffstats
path: root/netconfig
diff options
context:
space:
mode:
authorAndrzej Telszewski <atelszewski@gmail.com>2018-03-18 03:49:36 -0500
committerRobby Workman <rworkman@slackware.com>2018-03-18 03:49:36 -0500
commit663453e3e0136ad9ae0a4b5c9c67c535af9b8995 (patch)
tree1369b42c1004111aa898a4c6bc1c7e34dc0370a2 /netconfig
parent137657f6d9683cbc7d13840099e55cc52c68d5e9 (diff)
downloadslacknetsetup-663453e3e0136ad9ae0a4b5c9c67c535af9b8995.tar.xz
netconfig: Don't write hostname to NM config file any more
Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'netconfig')
-rw-r--r--netconfig4
1 files changed, 0 insertions, 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 \