From 3c38f904f831f02d5f5c28f431ca86d9877697f1 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 18 Apr 2011 14:16:08 -0400 Subject: Support overriding hostname via /etc/hostname. --- systemd/fedora-configure | 1 + 1 file changed, 1 insertion(+) (limited to 'systemd') 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} -- cgit v1.2.1