mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 12:53:54 +00:00
network-interfaces: fixing a cat/EOF piping confusion
This commit is contained in:
parent
927a3e3ff2
commit
1caa1b96cb
@ -277,7 +277,7 @@ in
|
|||||||
script =
|
script =
|
||||||
''
|
''
|
||||||
# Set the static DNS configuration, if given.
|
# Set the static DNS configuration, if given.
|
||||||
cat | ${pkgs.openresolv}/sbin/resolvconf -a static <<EOF
|
${pkgs.openresolv}/sbin/resolvconf -a static <<EOF
|
||||||
${optionalString (cfg.nameservers != [] && cfg.domain != "") ''
|
${optionalString (cfg.nameservers != [] && cfg.domain != "") ''
|
||||||
domain ${cfg.domain}
|
domain ${cfg.domain}
|
||||||
''}
|
''}
|
||||||
|
Loading…
Reference in New Issue
Block a user