blob: 39015bd9366d5cf5a83b1d371d416dc29fec194d [file] [log] [blame]
Adriana Kobylak9f89e2e2018-05-30 13:16:20 -05001#include "activation.hpp"
2#include "config.h"
3
4namespace phosphor
5{
6namespace software
7{
8namespace updater
9{
10
11void Activation::flashWrite()
12{
13 auto method = bus.new_method_call(SYSTEMD_BUSNAME, SYSTEMD_PATH,
14 SYSTEMD_INTERFACE, "StartUnit");
15 method.append("obmc-flash-bmc-ubirw.service", "replace");
16 bus.call_noreply(method);
17
18 auto roServiceFile = "obmc-flash-bmc-ubiro@" + versionId + ".service";
19 method = bus.new_method_call(SYSTEMD_BUSNAME, SYSTEMD_PATH,
20 SYSTEMD_INTERFACE, "StartUnit");
21 method.append(roServiceFile, "replace");
22 bus.call_noreply(method);
23
24 return;
25}
26
27} // namespace updater
28} // namespace software
29} // namepsace phosphor