devmon: re-evaluate device conditions on reconf

Device conditions tracked by devmon were lost on `initctl reload`
because the reconf path did not re-assert them.  Add devmon_reconf()
to iterate all tracked device nodes and set or clear their conditions
based on current device presence.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
This commit is contained in:
Mattias Walström committed 2026-02-10 20:09:35 +01:00
1 parent 109d8826bd
commit b206c3d655
4 files changed
+24

No files matched your search

+1
View File
@@ -27,6 +27,7 @@
void devmon_add_cond(const char *cond);
void devmon_del_cond(const char *cond);
void devmon_reconf(void);
void devmon_init(uev_ctx_t *ctx);
#endif /* FINIT_DEVMON_H_ */