1 #include "activation.hpp"
2 #include "config.h"
3 
4 namespace phosphor
5 {
6 namespace software
7 {
8 namespace updater
9 {
10 
11 void 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
30