summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNg Oon-Ee <ngoonee.talk@gmail.com>2011-06-18 12:48:57 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-06-18 13:21:44 +0200
commit666aa2a2a091ea457dfd6cf40ab58687164d3f80 (patch)
treed6447162b461969634b6a952b8a7df2539e66cf8
parent67d1a8078a89c34fbf427942a4de24a8c8556e6a (diff)
downloadnetctl-666aa2a2a091ea457dfd6cf40ab58687164d3f80.tar.gz
netctl-666aa2a2a091ea457dfd6cf40ab58687164d3f80.tar.xz
Add systemd service files for net-auto-{wired,wireless}
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
-rw-r--r--ifplugd/net-auto-wired.service13
-rw-r--r--wpa_actiond/net-auto-wireless.service13
2 files changed, 26 insertions, 0 deletions
diff --git a/ifplugd/net-auto-wired.service b/ifplugd/net-auto-wired.service
new file mode 100644
index 0000000..b356fef
--- /dev/null
+++ b/ifplugd/net-auto-wired.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Provides automatic netcfg wired connection
+Before=network.target
+
+[Service]
+EnvironmentFile=/etc/rc.conf
+EnvironmentFile=-/etc/ifplugd/ifplugd.conf
+ExecStart=-/usr/sbin/ifplugd -i $WIRED_INTERFACE -r /etc/ifplugd/netcfg.action -fIn -u0 -d10
+ExecStop=-/usr/sbin/ifplugd -k -i $WIRED_INTERFACE -r /etc/ifplugd/netcfg.action
+Type=simple
+
+[Install]
+WantedBy=multi-user.target
diff --git a/wpa_actiond/net-auto-wireless.service b/wpa_actiond/net-auto-wireless.service
new file mode 100644
index 0000000..68b0b93
--- /dev/null
+++ b/wpa_actiond/net-auto-wireless.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Provides automatic netcfg wireless connection
+After=dbus.service
+
+[Service]
+EnvironmentFile=/etc/rc.conf
+ExecStart=/usr/bin/netcfg-wpa_actiond $WIRELESS_INTERFACE
+ExecStop=/usr/bin/netcfg-wpa_actiond stop $WIRELESS_INTERFACE
+RemainAfterExit=yes
+Type=forking
+
+[Install]
+WantedBy=network.target