aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/systemd/wpa_supplicant-nl80211@.service.in
diff options
context:
space:
mode:
authorHenry Gebhardt <hsggebhardt@googlemail.com>2011-07-15 09:25:02 (GMT)
committerJouni Malinen <j@w1.fi>2011-07-15 09:25:02 (GMT)
commitf0573c7989e88023d1e9bb17d775e944cd956ae8 (patch)
treebfab35a0595c712b534b819f5acb96ab15ea642d /wpa_supplicant/systemd/wpa_supplicant-nl80211@.service.in
parent2ecaec50c8eb772e131b6c468b60edbcc00e660c (diff)
downloadhostap-f0573c7989e88023d1e9bb17d775e944cd956ae8.zip
hostap-f0573c7989e88023d1e9bb17d775e944cd956ae8.tar.gz
hostap-f0573c7989e88023d1e9bb17d775e944cd956ae8.tar.bz2
wpa_supplicant: Edit BINDIR in dbus and systemd service files
This is useful, since in Gentoo BINDIR=/usr/sbin.
Diffstat (limited to 'wpa_supplicant/systemd/wpa_supplicant-nl80211@.service.in')
-rw-r--r--wpa_supplicant/systemd/wpa_supplicant-nl80211@.service.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/wpa_supplicant/systemd/wpa_supplicant-nl80211@.service.in b/wpa_supplicant/systemd/wpa_supplicant-nl80211@.service.in
new file mode 100644
index 0000000..4d9c146
--- /dev/null
+++ b/wpa_supplicant/systemd/wpa_supplicant-nl80211@.service.in
@@ -0,0 +1,13 @@
+[Unit]
+Description=WPA supplicant daemon (interface- and nl80211 driver-specific version)
+Requires=sys-subsystem-net-devices-%i.device
+After=sys-subsystem-net-devices-%i.device
+
+# NetworkManager users will probably want the dbus version instead.
+
+[Service]
+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@wlan0.service