summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-08-20 13:13:35 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-08-20 13:13:35 +0200
commit1227a80b24c943438757e933bd568ceddd00479b (patch)
treee88638495f85726377dfa6cf4279ab31c3f54534 /systemd
parentec0e041a8eab919abef8e3af289c979ee1737382 (diff)
downloadnetctl-1227a80b24c943438757e933bd568ceddd00479b.tar.gz
netctl-1227a80b24c943438757e933bd568ceddd00479b.tar.xz
Reorganize files to match install location closer
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to 'systemd')
-rw-r--r--systemd/net-auto-wired.service13
-rw-r--r--systemd/net-auto-wireless.service14
2 files changed, 27 insertions, 0 deletions
diff --git a/systemd/net-auto-wired.service b/systemd/net-auto-wired.service
new file mode 100644
index 0000000..b356fef
--- /dev/null
+++ b/systemd/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/systemd/net-auto-wireless.service b/systemd/net-auto-wireless.service
new file mode 100644
index 0000000..7075cb5
--- /dev/null
+++ b/systemd/net-auto-wireless.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Provides automatic netcfg wireless connection
+After=dbus.service
+
+[Service]
+EnvironmentFile=/etc/rc.conf
+EnvironmentFile=/etc/conf.d/netcfg
+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