From 8d5037ad62949c13d3018fb4e743df44878b09c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 15 Jan 2010 11:20:57 +0000 Subject: [PATCH] network-interfaces and emitting ip-up: I was still learning boolean logic. svn path=/nixos/trunk/; revision=19464 --- modules/tasks/network-interfaces.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tasks/network-interfaces.nix b/modules/tasks/network-interfaces.nix index 95cc5041765..d2268e47b01 100644 --- a/modules/tasks/network-interfaces.nix +++ b/modules/tasks/network-interfaces.nix @@ -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 ''}