Add BootProgress signal for BootProgressSensor
This signal broadcasts current boot progress when sensor value changes.
Partially resolves openbmc/openbmc#315
Change-Id: If490852f2cfc620f720d6edfa629881212a43312
Signed-off-by: Yi Li <adamliyi@msn.com>
diff --git a/obmc/sensors.py b/obmc/sensors.py
index e5c79ef..dc74733 100644
--- a/obmc/sensors.py
+++ b/obmc/sensors.py
@@ -235,11 +235,16 @@
SensorValue.setValue(self, value)
if (value == "FW Progress, Starting OS"):
self.GotoSystemState("HOST_BOOTED")
+ self.BootProgress(value)
@dbus.service.signal(CONTROL_IFACE, signature='s')
def GotoSystemState(self, state):
pass
+ @dbus.service.signal(CONTROL_IFACE, signature='s')
+ def BootProgress(self, state):
+ pass
+
class OccStatusSensor(VirtualSensor):
def __init__(self, bus, name, sysfs=None):