diff options
Diffstat (limited to 'builder/modules.d/slx-network/scripts/udhcpc-trigger.stage3')
-rwxr-xr-x | builder/modules.d/slx-network/scripts/udhcpc-trigger.stage3 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/builder/modules.d/slx-network/scripts/udhcpc-trigger.stage3 b/builder/modules.d/slx-network/scripts/udhcpc-trigger.stage3 index 4760b5f9..ee870873 100755 --- a/builder/modules.d/slx-network/scripts/udhcpc-trigger.stage3 +++ b/builder/modules.d/slx-network/scripts/udhcpc-trigger.stage3 @@ -105,6 +105,12 @@ if [ -n "$ntpsrv" ]; then fi # Hostname +# Ignore it if hostname was forced per KCL +if [ -n "$SLX_PXE_HOSTNAME" ]; then + echo "Hostname set via KCL, ignoring DHCP hostname: '$hostname'" + hostname="$SLX_PXE_HOSTNAME" +fi + if [ -z "$hostname" ]; then # as with domain, if there's no hostname, try to get via DNS echo "..trying to get hostname via DNS, as DHCP didn't supply one.." |