summaryrefslogtreecommitdiff
path: root/src/etc
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-12 13:29:50 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-12 13:29:50 +0200
commitc0629296bbd3b10fa83d5c8199e89b607fdf3b25 (patch)
treeed09a63e6048846dabe877d32290aba73ca92f06 /src/etc
parent3411d1b3864390ba441327eb35b1fa46869c8263 (diff)
downloadvyos-1x-c0629296bbd3b10fa83d5c8199e89b607fdf3b25.tar.gz
vyos-1x-c0629296bbd3b10fa83d5c8199e89b607fdf3b25.zip
wireless: T2185: migrate from SysVinit to systemd
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/systemd/system/hostapd@.service.d/override.conf10
-rw-r--r--src/etc/systemd/system/wpa_supplicant@.service.d/override.conf10
2 files changed, 20 insertions, 0 deletions
diff --git a/src/etc/systemd/system/hostapd@.service.d/override.conf b/src/etc/systemd/system/hostapd@.service.d/override.conf
new file mode 100644
index 000000000..bb8e81d7a
--- /dev/null
+++ b/src/etc/systemd/system/hostapd@.service.d/override.conf
@@ -0,0 +1,10 @@
+[Unit]
+After=
+After=vyos-router.service
+
+[Service]
+WorkingDirectory=/run/hostapd
+EnvironmentFile=
+ExecStart=
+ExecStart=/usr/sbin/hostapd -B -P /run/hostapd/%i.pid /run/hostapd/%i.conf
+PIDFile=/run/hostapd/%i.pid
diff --git a/src/etc/systemd/system/wpa_supplicant@.service.d/override.conf b/src/etc/systemd/system/wpa_supplicant@.service.d/override.conf
new file mode 100644
index 000000000..20b25b726
--- /dev/null
+++ b/src/etc/systemd/system/wpa_supplicant@.service.d/override.conf
@@ -0,0 +1,10 @@
+[Unit]
+After=
+After=vyos-router.service
+
+[Service]
+WorkingDirectory=
+WorkingDirectory=/run/wpa_supplicant
+EnvironmentFile=
+ExecStart=
+ExecStart=/sbin/wpa_supplicant -c%I.conf -Dnl80211,wext -i%I