From a165b6593fed4883ab202bb8cff60b97939b2eae Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 21 Jun 2023 17:21:40 +0200 Subject: [slx-network] Write own hostname and fqdn to /etc/hosts --- modules.d/slx-network/scripts/udhcpc-trigger.stage3 | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-55-g7522