blob: 135da3721813f05ab282202455165274b7ab8e07 [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