[arch-projects] [netcfg] [PATCH 2/3] systemd: add net-auto-wireless at .service

Thomas Bächler thomas at archlinux.org
Wed Oct 24 18:27:40 EDT 2012


This has the advantage that we can (since systemd 195) have a proper
dependency on the wireless device.
---
 systemd/net-auto-wireless at .service | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 systemd/net-auto-wireless at .service

diff --git a/systemd/net-auto-wireless at .service b/systemd/net-auto-wireless at .service
new file mode 100644
index 0000000..29a0efb
--- /dev/null
+++ b/systemd/net-auto-wireless at .service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Provides automatic netcfg wireless connection
+Before=network.target
+Wants=network.target
+BindsTo=sys-subsystem-net-devices-%i.device
+After=sys-subsystem-net-devices-%i.device
+
+[Service]
+ExecStart=/usr/bin/netcfg-wpa_actiond %i
+ExecStop=/usr/bin/netcfg-wpa_actiond stop %i
+Type=forking
+
+[Install]
+WantedBy=multi-user.target
-- 
1.8.0



More information about the arch-projects mailing list