1#!/usr/bin/env bash 2# 3# config: 2 20 4# @brief: Collect LED groups details 5# 6 7# shellcheck disable=SC1091 8. "$DREPORT_INCLUDE"/functions 9 10desc="led groups" 11 12command="busctl call --verbose --no-pager \ 13 xyz.openbmc_project.LED.GroupManager \ 14 /xyz/openbmc_project/led/groups \ 15 org.freedesktop.DBus.ObjectManager \ 16 GetManagedObjects" 17 18file_name="ledgroups.log" 19 20if add_cmd_output "$command" "$file_name" "$desc"; 21then 22 dir_name="/var/lib/phosphor-led-manager/" 23 if [ -d "$dir_name" ]; then 24 add_copy_file "$dir_name" "$desc" 25 fi 26fi 27