aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/fedora-configure1
1 files changed, 1 insertions, 0 deletions
diff --git a/systemd/fedora-configure b/systemd/fedora-configure
index e6779fed..d1e4dbd3 100755
--- a/systemd/fedora-configure
+++ b/systemd/fedora-configure
@@ -15,6 +15,7 @@ fi
# Reread in network configuration data.
if [ -f /etc/sysconfig/network ]; then
. /etc/sysconfig/network
+ [ -r /etc/hostname ] && HOSTNAME=$(cat /etc/hostname)
# Reset the hostname.
action $"Resetting hostname ${HOSTNAME}: " hostname ${HOSTNAME}