SVN: rc-scripts/trunk/rc.d/rc.sysinit
baggins
baggins at pld-linux.org
Tue Mar 20 12:48:21 CET 2007
Author: baggins
Date: Tue Mar 20 12:48:21 2007
New Revision: 8387
Modified:
rc-scripts/trunk/rc.d/rc.sysinit
Log:
- cleaner solution for empty hostname
Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit Tue Mar 20 12:48:21 2007
@@ -129,8 +129,11 @@
fi
# Set the hostname
-[ -z "${HOSTNAME}" ] && HOSTNAME=$(hostname)
-run_cmd "$(nls 'Host:') ${HOSTNAME}" hostname ${HOSTNAME}
+if [ -z "${HOSTNAME}" ]; then
+ show "$(nls 'Host:') $(hostname)" ; ok
+else
+ run_cmd "$(nls 'Host:') ${HOSTNAME}" hostname ${HOSTNAME}
+fi
# Set the NIS domain name
if [ -n "$NISDOMAIN" ]; then
More information about the pld-cvs-commit
mailing list