diff options
-rw-r--r-- | core-services/05-misc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core-services/05-misc.sh b/core-services/05-misc.sh index 11ce1e6..9beff2a 100644 --- a/core-services/05-misc.sh +++ b/core-services/05-misc.sh @@ -10,7 +10,7 @@ ip link set up dev lo if [ -n "$HOSTNAME" ]; then echo "$HOSTNAME" > /proc/sys/kernel/hostname elif [ -r /etc/hostname ]; then - HOSTNAME=$(cat /etc/hostname) + read -r HOSTNAME < /etc/hostname echo "$HOSTNAME" > /proc/sys/kernel/hostname fi msg "Setting up hostname to '${HOSTNAME}'...\n" |