Fix hostname (inverse test).

svn path=/nixos/branches/fix-style/; revision=13851
This commit is contained in:
Nicolas Pierron 2009-01-25 15:48:35 +00:00
parent 08280c415f
commit bb56774a54

View File

@ -287,7 +287,7 @@ in
# Set the host name. Don't clear it if it's not configured in the
# NixOS configuration, since it may have been set by dhclient in the
# meantime.
${if config.networking.hostName == "" then
${if config.networking.hostName != "" then
''hostname "${config.networking.hostName}"''
else ''
# dhclient won't do anything if the hostname isn't empty.