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