From f0717e3fff64817661946f7a2816cfd340450d16 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 9 Jun 2011 22:59:57 +0200 Subject: hostname: echo to kernel directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows us to ignore the hostname utility, whose home is currently in flux. Suggested-by: Thomas Bächler Signed-off-by: Tom Gundersen --- rc.sysinit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rc.sysinit b/rc.sysinit index 12ffa72..fbdfbb3 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -327,7 +327,9 @@ stat_busy "Removing Leftover Files" stat_done if [[ $HOSTNAME ]]; then - status "Setting Hostname: $HOSTNAME" /bin/hostname "$HOSTNAME" + stat_busy "Setting Hostname: $HOSTNAME" + echo $HOSTNAME > /proc/sys/kernel/hostname + stat_done fi stat_busy "Setting Locale: ${LOCALE:=en_US}" -- cgit v1.2.3