diff options
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 6067ea88..561e99e8 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -12,6 +12,9 @@ set -m if [ -f /etc/sysconfig/network ]; then . /etc/sysconfig/network fi +if [ -r /etc/hostname ]; then + HOSTNAME=$(cat /etc/hostname) +fi if [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" ]; then HOSTNAME=localhost fi |