summary refs log tree commit diff
path: root/nixos/modules/services/networking/dhcpcd.nix
diff options
context:
space:
mode:
authorAlexander Ried <ried@mytum.de>2016-09-10 18:03:59 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2016-09-10 18:03:59 +0200
commit27bc34f1e471991e43df028edc51159b12405120 (patch)
tree755a9ff93c09e6affd01878667ba351c659cf3a7 /nixos/modules/services/networking/dhcpcd.nix
parenta28bbba6fc89a72fc65d08b98d79d2fda310b95c (diff)
downloadnixpkgs-27bc34f1e471991e43df028edc51159b12405120.tar
nixpkgs-27bc34f1e471991e43df028edc51159b12405120.tar.gz
nixpkgs-27bc34f1e471991e43df028edc51159b12405120.tar.bz2
nixpkgs-27bc34f1e471991e43df028edc51159b12405120.tar.lz
nixpkgs-27bc34f1e471991e43df028edc51159b12405120.tar.xz
nixpkgs-27bc34f1e471991e43df028edc51159b12405120.tar.zst
nixpkgs-27bc34f1e471991e43df028edc51159b12405120.zip
treewide: deprecate ip-up.target (#18319)
Systemd upstream provides targets for networking. This also includes a target network-online.target.

In this PR I remove / replace most occurrences since some of them were even wrong and could delay startup.
Diffstat (limited to 'nixos/modules/services/networking/dhcpcd.nix')
-rw-r--r--nixos/modules/services/networking/dhcpcd.nix7
1 files changed, 0 insertions, 7 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix
index b31d479ab4f..994b857e5e8 100644
--- a/nixos/modules/services/networking/dhcpcd.nix
+++ b/nixos/modules/services/networking/dhcpcd.nix
@@ -61,7 +61,6 @@ let
       ${cfg.extraConfig}
     '';
 
-  # Hook for emitting ip-up/ip-down events.
   exitHook = pkgs.writeText "dhcpcd.exit-hook"
     ''
       if [ "$reason" = BOUND -o "$reason" = REBOOT ]; then
@@ -73,14 +72,8 @@ let
           # applies to openntpd.
           ${config.systemd.package}/bin/systemctl try-restart ntpd.service
           ${config.systemd.package}/bin/systemctl try-restart openntpd.service
-
-          ${config.systemd.package}/bin/systemctl start ip-up.target
       fi
 
-      #if [ "$reason" = EXPIRE -o "$reason" = RELEASE -o "$reason" = NOCARRIER ] ; then
-      #    ${config.systemd.package}/bin/systemctl start ip-down.target
-      #fi
-
       ${cfg.runHook}
     '';