summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/wlan-boot/services/wpa_supplicant.service
diff options
context:
space:
mode:
Diffstat (limited to 'builder/modules.d/wlan-boot/services/wpa_supplicant.service')
-rw-r--r--builder/modules.d/wlan-boot/services/wpa_supplicant.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/builder/modules.d/wlan-boot/services/wpa_supplicant.service b/builder/modules.d/wlan-boot/services/wpa_supplicant.service
new file mode 100644
index 00000000..350e19de
--- /dev/null
+++ b/builder/modules.d/wlan-boot/services/wpa_supplicant.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=WPA supplicant
+Before=dhcp.service
+#Wants=dhcp.service
+ConditionFileIsExecutable=/usr/sbin/wpa_supplicant
+ConditionFileIsExecutable=/usr/bin/systemd-preserve-process-marker
+ConditionPathExists=/etc/wpa_supplicant.conf
+IgnoreOnIsolate=true
+DefaultDependencies=no
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/systemd-preserve-process-marker /usr/sbin/wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
+RemainAfterExit=yes
+KillMode=process
+#KillSignal=SIGTERM