aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-06-09 22:59:57 +0200
committerTom Gundersen <teg@jklm.no>2011-06-10 00:19:28 +0200
commitf262299928f1aca454a0bbadbcda144b3fb2e7e2 (patch)
tree12a4a97c11fc1a7e8946be7fd5a49c5c67387d91 /rc.sysinit
parent663f5e917994b674d4fbe184ff262f94da11256e (diff)
downloadinitscripts-f262299928f1aca454a0bbadbcda144b3fb2e7e2.tar.xz
hostname: echo to kernel directly
This allows us to ignore the hostname utility, whose home is currently in flux. Suggested-by: Thomas Bächler <thomas@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit4
1 files changed, 3 insertions, 1 deletions
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}"