Skip to content

Commit

Permalink
!148 BootLoader参数对接
Browse files Browse the repository at this point in the history
Merge pull request !148 from qy136/master
  • Loading branch information
openharmony_ci authored and gitee-org committed Nov 19, 2021
2 parents c3b248c + 1de4b3c commit aac1c4c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/daemon/daemon_unity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,10 @@ bool HdcDaemonUnity::RebootDevice(const string &cmd)
}
return Base::SetHdcProperty(rebootProperty.c_str(), propertyVal.c_str());
#else
string reason;
if (cmd == "recovery") {
reason = "updater";
} else if (cmd == "bootloader") {
reason = "NoArgument";
if ((cmd == "recovery") || (cmd == "bootloader")) {
return DoReboot("updater");
}
return DoReboot(reason.c_str());
return DoReboot("");
#endif
}

Expand Down

0 comments on commit aac1c4c

Please sign in to comment.