From 8eb85739c9656ba1447d61364117c9c06b0f867b Mon Sep 17 00:00:00 2001
From: Andrew Gunnerson <accounts+github@chiller3.com>
Date: Mon, 10 Apr 2023 13:19:30 -0400
Subject: hostapd: T5151: Override ConditionFileNotEmpty

Debian's `debian/2%2.10-12` update of the hostap packaging added a
ConditionFileNotEmpty directive for `/etc/hostapd/<...>` paths, which
doesn't match the `/run/hostapd/<...>` paths that VyOS uses. This commit
updates the override file to use the proper VyOS paths.

https://salsa.debian.org/debian/wpa/-/commit/d204ceb5a2dc33db888eb55b5fee542a1005e69c

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
---
 src/etc/systemd/system/hostapd@.service.d/override.conf | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/etc/systemd')

diff --git a/src/etc/systemd/system/hostapd@.service.d/override.conf b/src/etc/systemd/system/hostapd@.service.d/override.conf
index bb8e81d7a..926c07f94 100644
--- a/src/etc/systemd/system/hostapd@.service.d/override.conf
+++ b/src/etc/systemd/system/hostapd@.service.d/override.conf
@@ -1,6 +1,8 @@
 [Unit]
 After=
 After=vyos-router.service
+ConditionFileNotEmpty=
+ConditionFileNotEmpty=/run/hostapd/%i.conf
 
 [Service]
 WorkingDirectory=/run/hostapd
-- 
cgit v1.2.3