summaryrefslogtreecommitdiff
path: root/meta-fii
diff options
context:
space:
mode:
authorAshwin Murali <ashwin.murali@fii-na.com>2021-11-30 00:04:38 +0300
committerMustafa Shehabi <mustafa.shehabi@fii-na.com>2022-01-12 19:28:02 +0300
commit33dc239bafdbd0408b5e053ccad9164c4a6159a8 (patch)
tree29ce95ac78f8c7fb6ce20dfc8813fe13819f1663 /meta-fii
parent9d2a1e02ae942b82807ad3d56f9e58dcd7098048 (diff)
downloadopenbmc-33dc239bafdbd0408b5e053ccad9164c4a6159a8.tar.xz
meta-fii/meta-kudo: Restart PSUSensor service in init_once
Restart psusensor service to ensure that the VBAT sensor doesn't say "no reading" until it's second query after a hotswap. Signed-off-by: Ashwin Murali <ashwin.murali@fii-na.com> Change-Id: I6bb8866bff011e4641e5f26b82a0b17e50cc5fc8
Diffstat (limited to 'meta-fii')
-rw-r--r--meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh
index 55661df807..7f1c39d28e 100644
--- a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh
+++ b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh
@@ -67,3 +67,7 @@ fi
# Create /run/openbmc for system power files
mkdir "/run/openbmc"
+
+# Restart psusensor service to enusre that the VBAT sensor doesn't say "no reading" until
+# it's second query after a hotswap
+(sleep 45; systemctl restart xyz.openbmc_project.psusensor.service)&