diff options
author | Tom Gundersen <teg@jklm.no> | 2011-06-09 22:59:57 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-06-10 00:23:09 +0200 |
commit | f0717e3fff64817661946f7a2816cfd340450d16 (patch) | |
tree | 34033a3ce7041a0a9703658c76661bd0e7bfeb82 /rc.sysinit | |
parent | 366e15271fc8ffd84877822457349a11f56fcecf (diff) | |
download | initscripts-8215d3a0e555fae1842a8be54be9045d843906b3.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>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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}" |