[PATCH skeleton v5 5/5] Reset button does not power on when dc off

OpenBMC Patches openbmc-patches at stwcx.xyz
Mon Jan 18 13:40:35 AEDT 2016


From: Ken <ken.sk.lai at mail.foxconn.com>

---
 bin/chassis_control.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/chassis_control.py b/bin/chassis_control.py
index 07d1aaf..8298aee 100755
--- a/bin/chassis_control.py
+++ b/bin/chassis_control.py
@@ -130,7 +130,7 @@ class ChassisControlObject(Openbmc.DbusProperties,Openbmc.DbusObjectManager):
 	def reboot(self):
 		print "Rebooting"
 		if self.getPowerState() == POWER_OFF:
-			self.powerOn();
+			print "Power off, no reboot."
 		else:
 			self.Set(DBUS_NAME,"reboot",1)
 			self.powerOff()
-- 
2.6.4




More information about the openbmc mailing list