]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
localnet: Set FQDN without using domainname command
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Aug 2018 12:36:23 +0000 (13:36 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 23 Aug 2018 09:18:59 +0000 (10:18 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/localnet

index 97f4d381c985b5df45c0aef3bf4791dfd8101984..a16b32e46df665afaed12ed1dad04be649aec85a 100644 (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