Skip to content

Commit 3ee98f0

Browse files
Add files via upload
1 parent 748a075 commit 3ee98f0

File tree

1 file changed

+36
-0
lines changed
  • L2HalMock/patches/rdkservices/iarmmgrs

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
diff --git a/dsmgr/dsMgrPwrEventListener.c b/dsmgr/dsMgrPwrEventListener.c
2+
index 034b733..90674d0 100644
3+
--- a/dsmgr/dsMgrPwrEventListener.c
4+
+++ b/dsmgr/dsMgrPwrEventListener.c
5+
@@ -117,7 +117,7 @@ void initPwrEventListner()
6+
}
7+
8+
try {
9+
- device::Manager::load();
10+
+ device::Manager::Initialize();
11+
INT_DEBUG("device::Manager::load success.\n");
12+
}
13+
catch (...){
14+
diff --git a/power/pwrMgr.c b/power/pwrMgr.c
15+
index 550df26..df0e80b 100755
16+
--- a/power/pwrMgr.c
17+
+++ b/power/pwrMgr.c
18+
@@ -845,15 +845,15 @@ void performReboot(const char * requestor, const char * reboot_reason_custom, co
19+
char * reboot_reason_other_cpy = strdup(reboot_reason_other);
20+
21+
std::thread async_reboot_thread([requestor_cpy, reboot_reason_custom_cpy, reboot_reason_other_cpy] () {
22+
- v_secure_system("echo 0 > /opt/.rebootFlag");
23+
+ // v_secure_system("echo 0 > /opt/.rebootFlag");
24+
sleep(5);
25+
if(0 == access("/rebootNow.sh", F_OK))
26+
{
27+
- v_secure_system("/rebootNow.sh -s '%s' -r '%s' -o '%s'", requestor_cpy, reboot_reason_custom_cpy, reboot_reason_other_cpy);
28+
+ // v_secure_system("/rebootNow.sh -s '%s' -r '%s' -o '%s'", requestor_cpy, reboot_reason_custom_cpy, reboot_reason_other_cpy);
29+
}
30+
else
31+
{
32+
- v_secure_system("/lib/rdk/rebootNow.sh -s '%s' -r '%s' -o '%s'", requestor_cpy, reboot_reason_custom_cpy, reboot_reason_other_cpy);
33+
+ // v_secure_system("/lib/rdk/rebootNow.sh -s '%s' -r '%s' -o '%s'", requestor_cpy, reboot_reason_custom_cpy, reboot_reason_other_cpy);
34+
}
35+
free(requestor_cpy);
36+
free(reboot_reason_custom_cpy);

0 commit comments

Comments
 (0)