From 33dc239bafdbd0408b5e053ccad9164c4a6159a8 Mon Sep 17 00:00:00 2001 From: Ashwin Murali Date: Mon, 29 Nov 2021 15:04:38 -0600 Subject: 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 Change-Id: I6bb8866bff011e4641e5f26b82a0b17e50cc5fc8 --- .../meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta-fii') 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)& -- cgit v1.2.3