summaryrefslogtreecommitdiffstats
path: root/services/netctl@.service
diff options
context:
space:
mode:
Diffstat (limited to 'services/netctl@.service')
-rw-r--r--services/netctl@.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/services/netctl@.service b/services/netctl@.service
new file mode 100644
index 0000000..57229f8
--- /dev/null
+++ b/services/netctl@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Netcfg networking service for profile %i
+Before=network.target
+Wants=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/netcfg check-iface %i
+ExecStop=-/usr/bin/netcfg down %i
+KillMode=none
+
+[Install]
+WantedBy=multi-user.target