summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-network/scripts/udhcpc-trigger.stage3
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/slx-network/scripts/udhcpc-trigger.stage3')
-rwxr-xr-xmodules.d/slx-network/scripts/udhcpc-trigger.stage31
1 files changed, 1 insertions, 0 deletions
diff --git a/modules.d/slx-network/scripts/udhcpc-trigger.stage3 b/modules.d/slx-network/scripts/udhcpc-trigger.stage3
index 6b5bbdfa..664600a6 100755
--- a/modules.d/slx-network/scripts/udhcpc-trigger.stage3
+++ b/modules.d/slx-network/scripts/udhcpc-trigger.stage3
@@ -168,6 +168,7 @@ if [ -n "$hostname" ]; then
echo "$hostname" > "/proc/sys/kernel/hostname"
echo "$hostname" > "/etc/hostname"
echo "127.0.0.1 localhost" > "/etc/hosts"
+ echo "$ip $fqdn $hostname" >> "/etc/hosts"
echo "SLX_HOSTNAME='$hostname'" >> "$NETWORK_CONF"
fi