summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcchoux <cosmo.chou@quantatw.com>2025-08-25 14:59:49 +0300
committerAmithash Prasad <amithash@meta.com>2025-08-27 21:51:27 +0300
commitfc47c4b0d889d3e2a9f59b30dc934206273fa0eb (patch)
treeff4e690c5007cee3df46591b98729d0702631cfe
parentf7c737063a531702e6ce8937f5aec8c23e5b623a (diff)
downloadopenbmc-fc47c4b0d889d3e2a9f59b30dc934206273fa0eb.tar.xz
meta-facebook: bletchley: fix sled present detection monitoring
- Replace unavailable dbus-monitor with busctl monitor. Tested on bletchley/bletchley15: ``` Aug 25 04:11:07 bmc systemd[1]: Started SLED3 Present Manager. Aug 25 04:11:07 bmc busctl[765]: Monitoring bus message stream. Aug 25 04:37:02 bmc detect-sled-present[770]: SLED3 Removal Aug 25 04:37:07 bmc detect-sled-present[770]: SLED3 Insertion Aug 25 04:40:21 bmc detect-sled-present[770]: SLED3 Removal Aug 25 04:40:32 bmc detect-sled-present[770]: SLED3 Insertion ``` Change-Id: I50069fa4baa696a6bd55318e885d228ebee79f44 Signed-off-by: Cosmo Chou <cosmo.chou@quantatw.com>
-rw-r--r--meta-facebook/meta-bletchley/recipes-bletchley/detect-gpio-present/files/detect-sled-present6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-facebook/meta-bletchley/recipes-bletchley/detect-gpio-present/files/detect-sled-present b/meta-facebook/meta-bletchley/recipes-bletchley/detect-gpio-present/files/detect-sled-present
index 2483736880..16c14171af 100644
--- a/meta-facebook/meta-bletchley/recipes-bletchley/detect-gpio-present/files/detect-sled-present
+++ b/meta-facebook/meta-bletchley/recipes-bletchley/detect-gpio-present/files/detect-sled-present
@@ -96,14 +96,14 @@ sled_remove_action()
}
-dbus-monitor --system "type=signal,interface=${DBUS_PROPERTY_INTF},sender=${SERVICE_NAME},path=${PRESENT_OBJPATH}" |
+busctl monitor --system --match "type=signal,interface=${DBUS_PROPERTY_INTF},sender=${SERVICE_NAME},path=${PRESENT_OBJPATH}" |
while read -r line; do
case "$line" in
- *"boolean false"*)
+ *"BOOLEAN false"*)
echo "SLED${SLED_ID} Removal"
sled_remove_action "$SLED_ID"
;;
- *"boolean true"*)
+ *"BOOLEAN true"*)
echo "SLED${SLED_ID} Insertion"
sled_insert_action "$SLED_ID"
;;