meta-quanta: gbs: back to upstream and enable chassis-system reset
- change back to x86-power-control upstream
- enable chassis-system reset for hard power cycle
by Redfish
Usage by Redfish:
curl -k -u ${username}:${password}
https://${bmcip}/redfish/v1/Chassis/chassis/Actions/Chassis.Reset
-d '{"ResetType": "PowerCycle"}'
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: Icff87d590c911289cb15bdc34dafce69e55c9e2a
diff --git a/meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control/chassis-system-reset.service b/meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control/chassis-system-reset.service
new file mode 100644
index 0000000..6681954
--- /dev/null
+++ b/meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control/chassis-system-reset.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=System unit to hard reset or system reset chassis
+
+[Service]
+Type=oneshot
+RemainAfterExit=no
+ExecStart=/usr/bin/tray_powercycle.sh
+
+[Install]
+WantedBy=chassis-system-reset.target