Implement get/set shutdown policy IPMI OEM commands
Using the interface defined in intel-dbus-interface
Tested By:
ipmitool raw 0x30 0x60 1
ipmitool raw 0x30 0x62
Change-Id: I31c11218dcd23df8ef19e1f0f525dda889a696b3
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
diff --git a/include/oemcommands.hpp b/include/oemcommands.hpp
index cf91f58..2d2042d 100644
--- a/include/oemcommands.hpp
+++ b/include/oemcommands.hpp
@@ -130,10 +130,10 @@
static constexpr const uint8_t noShutdownPolicySupported = 0;
static constexpr const uint8_t shutdownPolicySupported = 1;
static constexpr const char* oemShutdownPolicyIntf =
- "xyz.openbmc_project.Control.ShutdownPolicy";
+ "com.intel.Control.OCOTShutdownPolicy";
static constexpr const char* oemShutdownPolicyObjPath =
- "/xyz/openbmc_project/control/shutdown_policy_config";
-static constexpr const char* oemShutdownPolicyObjPathProp = "Policy";
+ "/com/intel/control/ocotshutdown_policy_config";
+static constexpr const char* oemShutdownPolicyObjPathProp = "OCOTPolicy";
static constexpr const char* fwGetEnvCmd = "/sbin/fw_printenv";
static constexpr const char* fwSetEnvCmd = "/sbin/fw_setenv";