Fix hostname (inverse test).
svn path=/nixos/branches/fix-style/; revision=13851
This commit is contained in:
parent
08280c415f
commit
bb56774a54
@ -287,7 +287,7 @@ in
|
|||||||
# Set the host name. Don't clear it if it's not configured in the
|
# 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
|
# NixOS configuration, since it may have been set by dhclient in the
|
||||||
# meantime.
|
# meantime.
|
||||||
${if config.networking.hostName == "" then
|
${if config.networking.hostName != "" then
|
||||||
''hostname "${config.networking.hostName}"''
|
''hostname "${config.networking.hostName}"''
|
||||||
else ''
|
else ''
|
||||||
# dhclient won't do anything if the hostname isn't empty.
|
# dhclient won't do anything if the hostname isn't empty.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user