commit | 33dc239bafdbd0408b5e053ccad9164c4a6159a8 | [log] [tgz] |
---|---|---|
author | Ashwin Murali <ashwin.murali@fii-na.com> | Mon Nov 29 15:04:38 2021 -0600 |
committer | Mustafa Shehabi <mustafa.shehabi@fii-na.com> | Wed Jan 12 16:28:02 2022 +0000 |
tree | 29ce95ac78f8c7fb6ce20dfc8813fe13819f1663 | |
parent | 9d2a1e02ae942b82807ad3d56f9e58dcd7098048 [diff] [blame] |
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
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 55661df..7f1c39d 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 @@ # 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)&