diff options
author | Bill Nottingham <notting@redhat.com> | 2011-04-18 14:16:08 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-04-18 14:16:08 -0400 |
commit | 3c38f904f831f02d5f5c28f431ca86d9877697f1 (patch) | |
tree | 98e456d2c3979d7239c5307d51a6c6beb59c705f /systemd/fedora-configure | |
parent | b4bdede8b55b39467ee96da8d4e72dadd4e269ba (diff) | |
download | initscripts-3c38f904f831f02d5f5c28f431ca86d9877697f1.tar initscripts-3c38f904f831f02d5f5c28f431ca86d9877697f1.tar.gz initscripts-3c38f904f831f02d5f5c28f431ca86d9877697f1.tar.bz2 initscripts-3c38f904f831f02d5f5c28f431ca86d9877697f1.tar.xz initscripts-3c38f904f831f02d5f5c28f431ca86d9877697f1.zip |
Support overriding hostname via /etc/hostname.
Diffstat (limited to 'systemd/fedora-configure')
-rwxr-xr-x | systemd/fedora-configure | 1 |
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} |