blob: de7faaffcd312cb66601f1d1948ac8c65d2fe9b4 [file] [log] [blame]
#!/usr/bin/env bash
#
# config: 2 20
# @brief: Collect LED groups details
#
# shellcheck disable=SC1091
. "$DREPORT_INCLUDE"/functions
desc="led groups"
command="busctl call --verbose --no-pager \
xyz.openbmc_project.LED.GroupManager \
/xyz/openbmc_project/led/groups \
org.freedesktop.DBus.ObjectManager \
GetManagedObjects"
file_name="ledgroups.log"
if add_cmd_output "$command" "$file_name" "$desc";
then
dir_name="/var/lib/phosphor-led-manager/"
if [ -d "$dir_name" ]; then
add_copy_file "$dir_name" "$desc"
fi
fi