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
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit