From 2057d9087fa27413b2802c5ad54e5be5c2088f82 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Mon, 24 Nov 2014 11:57:50 -0800 Subject: nixos: Support network-online target in addition to ip-up --- nixos/modules/tasks/network-interfaces-scripted.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nixos/modules/tasks/network-interfaces-scripted.nix') diff --git a/nixos/modules/tasks/network-interfaces-scripted.nix b/nixos/modules/tasks/network-interfaces-scripted.nix index 64291a62421..1ac3310797c 100644 --- a/nixos/modules/tasks/network-interfaces-scripted.nix +++ b/nixos/modules/tasks/network-interfaces-scripted.nix @@ -47,8 +47,8 @@ in { description = "Networking Setup"; after = [ "network-interfaces.target" ]; - before = [ "network.target" "network-online.target" ]; - wantedBy = [ "network.target" "network-online.target" ]; + before = [ "network.target" ]; + wantedBy = [ "network.target" ]; unitConfig.ConditionCapability = "CAP_NET_ADMIN"; @@ -149,6 +149,7 @@ in ${config.systemd.package}/bin/systemctl try-restart --no-block network-setup.service fi ${config.systemd.package}/bin/systemctl start ip-up.target + ${config.systemd.package}/bin/systemctl start network-online.target ''; preStop = '' -- cgit 1.4.1