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

Jouke Witteveen j.witteveen at gmail.com
Mon Oct 29 11:47:08 EDT 2012


On Thu, Oct 25, 2012 at 11:20 PM, Thomas Bächler <thomas at 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 at .service    | 13 +++++++++++++
>  systemd/net-auto-wireless at .service | 14 ++++++++++++++
>  2 files changed, 27 insertions(+)
>  create mode 100644 systemd/net-auto-wired at .service
>  create mode 100644 systemd/net-auto-wireless at .service
>
> diff --git a/systemd/net-auto-wired at .service b/systemd/net-auto-wired at .service
> new file mode 100644
> index 0000000..9deede1
> --- /dev/null
> +++ b/systemd/net-auto-wired at .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 at .service b/systemd/net-auto-wireless at .service
> new file mode 100644
> index 0000000..231ffd1
> --- /dev/null
> +++ b/systemd/net-auto-wireless at .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


More information about the arch-projects mailing list