aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-07-29 15:36:58 +0000
committerBill Nottingham <notting@redhat.com>1999-07-29 15:36:58 +0000
commitb59cac0d85822005f34c3d81f60bcb1ca150b8d6 (patch)
treebd1eeabcb5a9170465e8ab3a2a2e12a97430980f /rc.d/rc.sysinit
parenta01fe4a13880b0f2b755c70a1decc557e99ffd30 (diff)
downloadinitscripts-b59cac0d85822005f34c3d81f60bcb1ca150b8d6.tar
initscripts-b59cac0d85822005f34c3d81f60bcb1ca150b8d6.tar.gz
initscripts-b59cac0d85822005f34c3d81f60bcb1ca150b8d6.tar.bz2
initscripts-b59cac0d85822005f34c3d81f60bcb1ca150b8d6.tar.xz
initscripts-b59cac0d85822005f34c3d81f60bcb1ca150b8d6.zip
set /etc/HOSTNAME no matter what...
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit5
1 files changed, 1 insertions, 4 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 1d0144f5..0f57fadf 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -206,10 +206,7 @@ if [ -n "$IN_INITLOG" ]; then
IN_INITLOG=
fi
-# /etc/HOSTNAME is obsolete.
-if [ -f /etc/HOSTNAME ]; then
- rm -f /etc/HOSTNAME
-fi
+echo ${HOSTNAME} > /etc/HOSTNAME
# Clear mtab
>/etc/mtab