localnet: Properly format and quote variables

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-08-16 12:42:25 +01:00
parent 5b9f387d59
commit 242cfc3395

View File

@@ -37,12 +37,12 @@ case "${1}" in
evaluate_retval
boot_mesg "Setting hostname to ${HOSTNAME}..."
hostname ${HOSTNAME}
hostname "${HOSTNAME}"
evaluate_retval
if [ -n "$DOMAINNAME" ]; then
if [ -n "${DOMAINNAME}" ]; then
boot_mesg "Setting domainname to ${DOMAINNAME}..."
domainname ${DOMAINNAME}
domainname "${DOMAINNAME}"
evaluate_retval
fi