Merge pull request #19729 from groxxda/supplicant

supplicants: fix wants and wantedBy
This commit is contained in:
Tim Steinbach 2016-10-20 16:39:59 -04:00 committed by GitHub
commit 0cbc4551ed
2 changed files with 6 additions and 3 deletions

View file

@ -34,7 +34,8 @@ let
'';
in
{ description = "Supplicant ${iface}${optionalString (iface=="WLAN"||iface=="LAN") " %I"}";
wantedBy = [ "network.target" ] ++ deps;
wantedBy = [ "multi-user.target" ] ++ deps;
wants = [ "network.target" ];
bindsTo = deps;
after = deps;
before = [ "network.target" ];

View file

@ -128,9 +128,11 @@ in {
in {
description = "WPA Supplicant";
after = [ "network.target" ] ++ lib.concatMap deviceUnit ifaces;
after = lib.concatMap deviceUnit ifaces;
before = [ "network.target" ];
wants = [ "network.target" ];
requires = lib.concatMap deviceUnit ifaces;
wantedBy = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
path = [ pkgs.wpa_supplicant ];