xref: /openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/emconfig (revision e110762f865fe1d1b2dee65b86099d885a2af547)
1#!/usr/bin/env bash
2#
3# config: 2 20
4# @brief: Save the entity manager configuration
5#
6
7# shellcheck source=tools/dreport.d/include.d/functions
8. "$DREPORT_INCLUDE"/functions
9
10desc="entity-manager configuration"
11file_name="em-system.json"
12
13if [ -e "/var/configuration/system.json" ]; then
14    command="cat /var/configuration/system.json"
15    add_cmd_output "$command" "$file_name" "$desc"
16fi
17