This has the advantage that we can (since systemd 195) have a proper dependency on the wireless device. --- systemd/net-auto-wireless@.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 systemd/net-auto-wireless@.service diff --git a/systemd/net-auto-wireless@.service b/systemd/net-auto-wireless@.service new file mode 100644 index 0000000..29a0efb --- /dev/null +++ b/systemd/net-auto-wireless@.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