From 9c1aa190114dcd0be16dd4ce49459955fc4f7434 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Fri, 11 Sep 2020 11:50:43 +0200 Subject: [HICN-638] Check if systemd is running before enabling hicn-light service. Signed-off-by: Mauro Sardara Change-Id: I3864fdab16b20f1cd03d421a356d8bb9227bdf6f --- hicn-light/config/post | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hicn-light/config/post b/hicn-light/config/post index dced2a093..91f596050 100755 --- a/hicn-light/config/post +++ b/hicn-light/config/post @@ -1,3 +1,5 @@ #!/bin/bash -systemctl enable hicn-light \ No newline at end of file +if pidof systemd; then + systemctl enable hicn-light +fi -- cgit 1.2.3-korg