[PATCH wpa_supplicant] Use correct (multi-user) target when installing systemd units.

Michał Górny mgorny
Tue Dec 27 14:24:46 PST 2011


The 'network.target' is special (per systemd.special(7)), and is to be
brought up indirectly when network is actually configured (i.e. through
DHCP or static address settings).

Irrelevant of that, all services should be always installed in
multi-user.target.

Fixes: http://w1.fi/bugz/show_bug.cgi?id=427
---
 .../systemd/wpa_supplicant-nl80211 at .service.in     |    2 +-
 .../systemd/wpa_supplicant-wired at .service.in       |    2 +-
 wpa_supplicant/systemd/wpa_supplicant.service.in   |    2 +-
 wpa_supplicant/systemd/wpa_supplicant at .service.in  |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/wpa_supplicant/systemd/wpa_supplicant-nl80211 at .service.in b/wpa_supplicant/systemd/wpa_supplicant-nl80211 at .service.in
index 4d9c146..76aba12 100644
--- a/wpa_supplicant/systemd/wpa_supplicant-nl80211 at .service.in
+++ b/wpa_supplicant/systemd/wpa_supplicant-nl80211 at .service.in
@@ -10,4 +10,4 @@ Type=simple
 ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I
 
 [Install]
-Alias=network.target.wants/wpa_supplicant-nl80211 at wlan0.service
+Alias=multi-user.target.wants/wpa_supplicant-nl80211 at wlan0.service
diff --git a/wpa_supplicant/systemd/wpa_supplicant-wired at .service.in b/wpa_supplicant/systemd/wpa_supplicant-wired at .service.in
index f2e7f11..ff384ae 100644
--- a/wpa_supplicant/systemd/wpa_supplicant-wired at .service.in
+++ b/wpa_supplicant/systemd/wpa_supplicant-wired at .service.in
@@ -10,4 +10,4 @@ Type=simple
 ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wired-%I.conf -Dwired -i%I
 
 [Install]
-Alias=network.target.wants/wpa_supplicant-wired at wlan0.service
+Alias=multi-user.target.wants/wpa_supplicant-wired at wlan0.service
diff --git a/wpa_supplicant/systemd/wpa_supplicant.service.in b/wpa_supplicant/systemd/wpa_supplicant.service.in
index 5b947ac..4351ad8 100644
--- a/wpa_supplicant/systemd/wpa_supplicant.service.in
+++ b/wpa_supplicant/systemd/wpa_supplicant.service.in
@@ -7,5 +7,5 @@ BusName=fi.epitest.hostap.WPASupplicant
 ExecStart=@BINDIR@/wpa_supplicant -u
 
 [Install]
-WantedBy=network.target
+WantedBy=multi-user.target
 Alias=dbus-fi.epitest.hostap.WPASupplicant.service
diff --git a/wpa_supplicant/systemd/wpa_supplicant at .service.in b/wpa_supplicant/systemd/wpa_supplicant at .service.in
index 0340b4d..c215567 100644
--- a/wpa_supplicant/systemd/wpa_supplicant at .service.in
+++ b/wpa_supplicant/systemd/wpa_supplicant at .service.in
@@ -10,4 +10,4 @@ Type=simple
 ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
 
 [Install]
-Alias=network.target.wants/wpa_supplicant at wlan0.service
+Alias=multi-user.target.wants/wpa_supplicant at wlan0.service
-- 
1.7.8.1.362.g5d6df.dirty




More information about the Hostap mailing list