Marri Devender Rao | 7f8fe7f | 2022-04-14 02:25:59 -0500 | [diff] [blame] | 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 | |
| 10 | desc="led groups" |
| 11 | |
| 12 | command="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 | |
| 18 | file_name="ledgroups.log" |
| 19 | |
| 20 | if add_cmd_output "$command" "$file_name" "$desc"; |
| 21 | then |
| 22 | dir_name="/var/lib/phosphor-led-manager/" |
| 23 | if [ -d "$dir_name" ]; then |
Patrick Williams | 9d26e4f | 2022-12-08 06:46:44 -0600 | [diff] [blame^] | 24 | add_copy_file "$dir_name" "$desc" |
Marri Devender Rao | 7f8fe7f | 2022-04-14 02:25:59 -0500 | [diff] [blame] | 25 | fi |
| 26 | fi |