network-interfaces and emitting ip-up: I was still learning boolean logic.

svn path=/nixos/trunk/; revision=19464
This commit is contained in:
Lluís Batlle i Rossell 2010-01-15 11:20:57 +00:00
parent 473c9d8881
commit 8d5037ad62

View File

@ -179,7 +179,7 @@ in
# Run any user-specified commands.
${pkgs.stdenv.shell} ${pkgs.writeText "local-net-cmds" cfg.localCommands} || true
${optionalString (cfg.interfaces != [] && cfg.localCommands != "") ''
${optionalString (cfg.interfaces != [] || cfg.localCommands != "") ''
# Emit the ip-up event (e.g. to start ntpd).
initctl emit -n ip-up
''}