From: Daniel-Constantin Mierla <miconda@gmail.com>
Date: Fri, 22 Nov 2019 09:14:06 +0100
Subject: [PATCH] systemdops: set core callbacks in mod_register()

---
 src/modules/systemdops/systemdops_mod.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/modules/systemdops/systemdops_mod.c b/src/modules/systemdops/systemdops_mod.c
index 58d7a2b..0ac1542 100644
--- a/src/modules/systemdops/systemdops_mod.c
+++ b/src/modules/systemdops/systemdops_mod.c
@@ -68,5 +68,11 @@ void ksr_sd_app_shutdown(void)
  */
 int mod_register(char *path, int *dlflags, void *p1, void *p2)
 {
+	sr_corecb_t *cbp = sr_corecb_get();
+	if(cbp) {
+		return -1;
+	}
+	cbp->app_ready = ksr_sd_app_ready;
+	cbp->app_shutdown = ksr_sd_app_shutdown;
 	return 0;
 }
