summary refs log tree commit diff
path: root/core-services/05-misc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core-services/05-misc.sh')
-rw-r--r--core-services/05-misc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/core-services/05-misc.sh b/core-services/05-misc.sh
index 8f5c6c5..743dcdb 100644
--- a/core-services/05-misc.sh
+++ b/core-services/05-misc.sh
@@ -10,7 +10,7 @@ ip link set up dev lo
 [ -r /etc/hostname ] && read -r HOSTNAME < /etc/hostname
 if [ -n "$HOSTNAME" ]; then
     msg "Setting up hostname to '${HOSTNAME}'..."
-    echo "$HOSTNAME" > /proc/sys/kernel/hostname
+    printf "%s" "$HOSTNAME" > /proc/sys/kernel/hostname
 else
     msg_warn "Didn't setup a hostname!"
 fi