summaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 8dd1607..602ef1f 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -225,6 +225,9 @@ RANDOM_SEED=/var/lib/misc/random-seed
# Remove leftover files
remove_leftover
+if [[ -s /etc/hostname ]]; then
+ HOSTNAME=$(< /etc/hostname)
+fi
if [[ $HOSTNAME ]]; then
stat_busy "Setting Hostname: $HOSTNAME"
echo "$HOSTNAME" >| /proc/sys/kernel/hostname && stat_done || stat_fail