meta-hpe: dl360-g11 power sequencing
Signed-off-by: Andrew Neyland <andrew.neyland@hpe.com>
Change-Id: I991a2519850214a547b8129281d043a5f8af9d9e
diff --git a/meta-hpe/meta-dl360-g11/recipes-hpe/power-sequencing/files/ipmi-power-button-monitoring.sh b/meta-hpe/meta-dl360-g11/recipes-hpe/power-sequencing/files/ipmi-power-button-monitoring.sh
new file mode 100644
index 0000000..3c1bb0f
--- /dev/null
+++ b/meta-hpe/meta-dl360-g11/recipes-hpe/power-sequencing/files/ipmi-power-button-monitoring.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+dbus-monitor --system --profile "type='method_call',path='/xyz/openbmc_project/state/host0',interface='org.freedesktop.DBus.Properties',member='Set'" | awk '/xyz.openbmc_project.State.Host/ { print "DONE" }' | while read -r; do
+/usr/bin/dl360Start.sh
+done