localnet: Set FQDN without using domainname command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-08-22 13:36:23 +01:00
parent 702f0ba835
commit 95b87f39ac

View File

@@ -36,16 +36,10 @@ case "${1}" in
ip link set lo up
evaluate_retval
boot_mesg "Setting hostname to ${HOSTNAME}..."
hostname "${HOSTNAME}"
boot_mesg "Setting hostname to ${HOSTNAME}.${DOMAINNAME}..."
hostname "${HOSTNAME}.${DOMAINNAME}"
evaluate_retval
if [ -n "${DOMAINNAME}" ]; then
boot_mesg "Setting domainname to ${DOMAINNAME}..."
domainname "${DOMAINNAME}"
evaluate_retval
fi
# Update hosts
write_hosts