From f262299928f1aca454a0bbadbcda144b3fb2e7e2 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(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index c43dd95..9750913 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -316,7 +316,9 @@ stat_busy "Removing Leftover Files" stat_done if [[ $HOSTNAME ]]; then - status "Setting Hostname: $HOSTNAME" 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