mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
localnet: Set FQDN without using domainname command
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user