[netctl] Support removable devices in automatic connections
diff mbox

Message ID 20181111162050.GA3511@Mindship-05.localdomain
State New
Headers show

Commit Message

Eli Schwartz via arch-projects Nov. 11, 2018, 4:20 p.m. UTC
---
 services/netctl-auto@.service    | 3 ++-
 services/netctl-ifplugd@.service | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

Patch
diff mbox

diff --git a/services/netctl-auto@.service b/services/netctl-auto@.service
index 3e41744..aacf65c 100644
--- a/services/netctl-auto@.service
+++ b/services/netctl-auto@.service
@@ -1,6 +1,7 @@ 
 [Unit]
 Description=Automatic wireless network connection using netctl profiles
 Documentation=man:netctl.special(7)
+Requisite=multi-user.target
 BindsTo=sys-subsystem-net-devices-%i.device
 After=sys-subsystem-net-devices-%i.device network-pre.target
 Before=network.target
@@ -14,4 +15,4 @@  ExecStop=/usr/bin/netctl-auto stop %I
 ExecStopPost=/usr/bin/netctl-auto clean %I
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=sys-subsystem-net-devices-%i.device
diff --git a/services/netctl-ifplugd@.service b/services/netctl-ifplugd@.service
index 76993b9..82fd9c0 100644
--- a/services/netctl-ifplugd@.service
+++ b/services/netctl-ifplugd@.service
@@ -1,6 +1,7 @@ 
 [Unit]
 Description=Automatic wired network connection using netctl profiles
 Documentation=man:netctl.special(7)
+Requisite=multi-user.target
 BindsTo=sys-subsystem-net-devices-%i.device
 After=sys-subsystem-net-devices-%i.device network-pre.target
 
@@ -9,4 +10,4 @@  NotifyAccess=all
 ExecStart=/usr/bin/ifplugd -i %I -r /etc/ifplugd/netctl.action -bfIns
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=sys-subsystem-net-devices-%i.device