aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrc.sysinit8
1 files changed, 5 insertions, 3 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 458bac6..e18456e 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -14,9 +14,6 @@ fi
if [[ -s /etc/hostname ]]; then
HOSTNAME=$(< /etc/hostname)
fi
-if [[ $HOSTNAME ]]; then
- echo "$HOSTNAME" >| /proc/sys/kernel/hostname
-fi
# don't let all the systemd tools be too verbose
export SYSTEMD_LOG_LEVEL="notice"
@@ -46,6 +43,11 @@ bootlogd -p /run/bootlogd.pid
run_hook sysinit_start
+if [[ $HOSTNAME ]]; then
+ stat_busy "Setting hostname: $HOSTNAME"
+ echo "$HOSTNAME" >| /proc/sys/kernel/hostname && stat_done || stat_fail
+fi
+
HWCLOCK_PARAMS="--systz"
if [[ $HARDWARECLOCK ]]; then