These keys should stick around when disabled since they're present at
boot. This also fixes an issue where the keys are unable to be written
on wake from S3 or S4.
Signed-off-by: Troy Crosley <troycrosley@gmail.com>
Reviewed-by: Paul Durrant <paul@xen.org>
if (!m_ctxt_shutdown)
return;
- m_device->StoreRemove("control/feature-poweroff");
- m_device->StoreRemove("control/feature-reboot");
- m_device->StoreRemove("control/feature-s3");
- m_device->StoreRemove("control/feature-s4");
+ m_device->StoreWrite("control/feature-poweroff", "");
+ m_device->StoreWrite("control/feature-reboot", "");
+ m_device->StoreWrite("control/feature-s3", "");
+ m_device->StoreWrite("control/feature-s4", "");
m_device->StoreRemoveWatch(m_ctxt_shutdown);
m_ctxt_shutdown = NULL;