From e9a15758dad2d2d63ffae95a06fc4b2b09b72be5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 6 Mar 2009 06:30:15 +0100 Subject: [PATCH] initscripts: set hostname via rc.sysinit. --HG-- extra : convert_revision : 3f0c356f141d3d408089dca970497b310dc5a66e --- templates/initscripts/files/rc.sysinit | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/initscripts/files/rc.sysinit b/templates/initscripts/files/rc.sysinit index e74d1b47492..40cebbf2787 100755 --- a/templates/initscripts/files/rc.sysinit +++ b/templates/initscripts/files/rc.sysinit @@ -50,3 +50,8 @@ fi if [ -f /etc/localtime ]; then hwclock $HWCLOCK_PARAMS --noadjfile fi + +# Set hostname +if [ -n "$HOSTNAME" ]; then + hostname "$HOSTNAME" +fi