On Thu, Oct 25, 2012 at 11:20 PM, Thomas Bächler thomas@archlinux.org wrote:
This has the advantage that we can (since systemd 195) have a proper dependency on the wireless device. These services deprecate the non-instantiated variants and should eventually replace them.
systemd/net-auto-wired@.service | 13 +++++++++++++ systemd/net-auto-wireless@.service | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 systemd/net-auto-wired@.service create mode 100644 systemd/net-auto-wireless@.service
diff --git a/systemd/net-auto-wired@.service b/systemd/net-auto-wired@.service new file mode 100644 index 0000000..9deede1 --- /dev/null +++ b/systemd/net-auto-wired@.service @@ -0,0 +1,13 @@ +[Unit] +Description=Automatic wired network connection on %i +Before=network.target +Wants=network.target +BindsTo=sys-subsystem-net-devices-%i.device +After=sys-subsystem-net-devices-%i.device
+[Service] +ExecStart=/usr/bin/ifplugd -i %i -r /etc/ifplugd/netcfg.action -fIns +ExecStop=/usr/bin/netcfg iface-down %i
+[Install] +WantedBy=multi-user.target diff --git a/systemd/net-auto-wireless@.service b/systemd/net-auto-wireless@.service new file mode 100644 index 0000000..231ffd1 --- /dev/null +++ b/systemd/net-auto-wireless@.service @@ -0,0 +1,14 @@ +[Unit] +Description=Automatic wireless network connection on %i +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
This one looks fine. Even if they do not replace their counterparts, they have some value. I will merge this one.
- Jouke