SVN: rc-scripts/trunk/rc.d/rc.sysinit
baggins
baggins at pld-linux.org
Mon Mar 19 18:27:38 CET 2007
Author: baggins
Date: Mon Mar 19 18:27:37 2007
New Revision: 8383
Modified:
rc-scripts/trunk/rc.d/rc.sysinit
Log:
- in case of empty HOSTNAME set it to what the kernel thinks it is
(for example workstation with kernel level IP config and / over NFS)
Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit Mon Mar 19 18:27:37 2007
@@ -129,6 +129,7 @@
fi
# Set the hostname
+[ -z "${HOSTNAME}" ] && HOSTNAME=$(hostname)
run_cmd "$(nls 'Host:') ${HOSTNAME}" hostname ${HOSTNAME}
# Set the NIS domain name
More information about the pld-cvs-commit
mailing list