aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/systemd
diff options
context:
space:
mode:
authorHenry Gebhardt <hsggebhardt@googlemail.com>2011-07-15 09:13:40 (GMT)
committerJouni Malinen <j@w1.fi>2011-07-15 09:13:40 (GMT)
commit2ecaec50c8eb772e131b6c468b60edbcc00e660c (patch)
treea5efa9097e9478ba8390f807204d922d9fe923ad /wpa_supplicant/systemd
parentf67eeb5c320274d5839733d5ffd7f553d99e335d (diff)
downloadhostap-2ecaec50c8eb772e131b6c468b60edbcc00e660c.zip
hostap-2ecaec50c8eb772e131b6c468b60edbcc00e660c.tar.gz
hostap-2ecaec50c8eb772e131b6c468b60edbcc00e660c.tar.bz2
wpa_supplicant: Add systemd support
Diffstat (limited to 'wpa_supplicant/systemd')
-rw-r--r--wpa_supplicant/systemd/wpa_supplicant-nl80211@.service13
-rw-r--r--wpa_supplicant/systemd/wpa_supplicant-wired@.service13
-rw-r--r--wpa_supplicant/systemd/wpa_supplicant.service11
-rw-r--r--wpa_supplicant/systemd/wpa_supplicant@.service13
4 files changed, 50 insertions, 0 deletions
diff --git a/wpa_supplicant/systemd/wpa_supplicant-nl80211@.service b/wpa_supplicant/systemd/wpa_supplicant-nl80211@.service
new file mode 100644
index 0000000..04aa1ba
--- /dev/null
+++ b/wpa_supplicant/systemd/wpa_supplicant-nl80211@.service
@@ -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=/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I
+
+[Install]
+Alias=network.target.wants/wpa_supplicant-nl80211@wlan0.service
diff --git a/wpa_supplicant/systemd/wpa_supplicant-wired@.service b/wpa_supplicant/systemd/wpa_supplicant-wired@.service
new file mode 100644
index 0000000..83f8c91
--- /dev/null
+++ b/wpa_supplicant/systemd/wpa_supplicant-wired@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=WPA supplicant daemon (interface- and wired 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=/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wired-%I.conf -Dwired -i%I
+
+[Install]
+Alias=network.target.wants/wpa_supplicant-wired@wlan0.service
diff --git a/wpa_supplicant/systemd/wpa_supplicant.service b/wpa_supplicant/systemd/wpa_supplicant.service
new file mode 100644
index 0000000..a9ab246
--- /dev/null
+++ b/wpa_supplicant/systemd/wpa_supplicant.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=WPA supplicant
+
+[Service]
+Type=dbus
+BusName=fi.epitest.hostap.WPASupplicant
+ExecStart=/sbin/wpa_supplicant -u
+
+[Install]
+WantedBy=network.target
+Alias=dbus-fi.epitest.hostap.WPASupplicant.service
diff --git a/wpa_supplicant/systemd/wpa_supplicant@.service b/wpa_supplicant/systemd/wpa_supplicant@.service
new file mode 100644
index 0000000..129dd1f
--- /dev/null
+++ b/wpa_supplicant/systemd/wpa_supplicant@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=WPA supplicant daemon (interface-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=/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
+
+[Install]
+Alias=network.target.wants/wpa_supplicant@wlan0.service