aboutsummaryrefslogtreecommitdiff
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:23:09 +0200
commitf0717e3fff64817661946f7a2816cfd340450d16 (patch)
tree34033a3ce7041a0a9703658c76661bd0e7bfeb82
parent366e15271fc8ffd84877822457349a11f56fcecf (diff)
downloadinitscripts-f0717e3fff64817661946f7a2816cfd340450d16.tar.xz
hostname: echo to kernel directly2011.06.4
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>
-rwxr-xr-xrc.sysinit4
1 files changed, 3 insertions, 1 deletions
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}"