From: Roy Marples Date: Tue, 21 Jul 2009 20:01:46 +0000 (+0000) Subject: Test for fqdn name. X-Git-Tag: v5.0.7~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a302802b33a1d1acb017b44c68e8de60392cd2e;p=thirdparty%2Fdhcpcd.git Test for fqdn name. --- diff --git a/dhcpcd-hooks/30-hostname b/dhcpcd-hooks/30-hostname index 0521f49d..4fae4b50 100644 --- a/dhcpcd-hooks/30-hostname +++ b/dhcpcd-hooks/30-hostname @@ -17,7 +17,7 @@ set_hostname() if need_hostname; then if [ -n "$new_host_name" ]; then hostname "$new_host_name" - else + elif [ -n "$new_fqdn_name" ]; then hostname "$new_fqdn_name" fi fi