Skip to content

Commit

Permalink
Use the system hostname (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
alkisg committed Oct 10, 2021
1 parent 62722a1 commit d4a67e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ltsp/common/ltsp/55-config.sh
@@ -1,5 +1,5 @@
# This file is part of LTSP, https://ltsp.org
# Copyright 2019 the LTSP team, see AUTHORS
# Copyright 2019-2021 the LTSP team, see AUTHORS
# SPDX-License-Identifier: GPL-3.0-or-later

# Functions related to LTSP configuration and environment variables
Expand Down Expand Up @@ -290,6 +290,9 @@ EOF
$(re ip -o link show dev "$DEVICE" | grep -o 'link/ether [^ ]*')
EOF
re test "MAC_ADDRESS=$MAC_ADDRESS" != "MAC_ADDRESS="
# HOSTNAME is needed for eval_ini before import_ipconfig
HOSTNAME=${HOSTNAME:-$(hostname)}
test "$HOSTNAME" != "(none)" || unset HOSTNAME
}

# Omit functions specified in OMIT_FUNCTIONS
Expand Down

0 comments on commit d4a67e7

Please sign in to comment.