summaryrefslogtreecommitdiff
path: root/meta-ibm/recipes-phosphor/leds/phosphor-led-manager
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2020-10-23 10:10:20 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-12-15 21:53:48 +0300
commit1a8345b34bb88a212c75d8188d5385ccbc6c2a3e (patch)
treec5565c45fd6a1793d8c201dc25499caeba2380d8 /meta-ibm/recipes-phosphor/leds/phosphor-led-manager
parent530e1d809b87f0646b8131540d57a985b0aca527 (diff)
downloadopenbmc-1a8345b34bb88a212c75d8188d5385ccbc6c2a3e.tar.xz
LEDS: Add systemd unit to call led-set-all-groups-asserted.sh
led-set-all-groups-asserted.sh needs to be called with "false" as part of below transitions to turn off all indicator LEDs - BMC booting to standby and staying at standby - BMC starting to power on (From meta-ibm rev: e784b71c2d625b4507758df4bb5743fc678251f3) Change-Id: If248220964c65e91e9382504b1a7095cc5cec26b Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-ibm/recipes-phosphor/leds/phosphor-led-manager')
-rw-r--r--meta-ibm/recipes-phosphor/leds/phosphor-led-manager/obmc-led-set-all-groups-asserted@.service13
-rw-r--r--meta-ibm/recipes-phosphor/leds/phosphor-led-manager/obmc/led/set-all/groups/config1
2 files changed, 14 insertions, 0 deletions
diff --git a/meta-ibm/recipes-phosphor/leds/phosphor-led-manager/obmc-led-set-all-groups-asserted@.service b/meta-ibm/recipes-phosphor/leds/phosphor-led-manager/obmc-led-set-all-groups-asserted@.service
new file mode 100644
index 000000000..82763ea20
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/leds/phosphor-led-manager/obmc-led-set-all-groups-asserted@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Set the Asserted property of all the LED groups to %i
+Wants=xyz.openbmc_project.LED.GroupManager
+After=xyz.openbmc_project.LED.GroupManager
+After=op-reset-chassis-running@0.service
+ConditionPathExists=!/run/openbmc/chassis@0-on
+
+[Service]
+Type=oneshot
+Restart=no
+EnvironmentFile={envfiledir}/obmc/led/set-all/groups/config
+ExecStart=/bin/bash -c "led-set-all-groups-asserted.sh %i ${{EXCLUDED_GROUPS}}"
+SyslogIdentifier=obmc-led-set-all-groups-asserted
diff --git a/meta-ibm/recipes-phosphor/leds/phosphor-led-manager/obmc/led/set-all/groups/config b/meta-ibm/recipes-phosphor/leds/phosphor-led-manager/obmc/led/set-all/groups/config
new file mode 100644
index 000000000..664200dca
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/leds/phosphor-led-manager/obmc/led/set-all/groups/config
@@ -0,0 +1 @@
+EXCLUDED_GROUPS=bmc_booted power_on