Skip to content

Commit 5a3dde0

Browse files
committed
Rollback reboot function, use hbchannel's reboot endpoint, no 'reason: SwUpdate' tho (compatibility)
1 parent 6adb507 commit 5a3dde0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/views/MainPanel.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ module.exports = kind({
7676
{kind: LunaService, name: 'terminate', service: 'luna://org.webosbrew.hyperion.ng.loader.service', method: 'terminate', onResponse: 'onTermination', onError: 'onTermination'},
7777
{kind: LunaService, name: 'autostartStatusCheck', service: 'luna://org.webosbrew.hbchannel.service', method: 'exec', onResponse: 'onAutostartCheck', onError: 'onAutostartCheck'},
7878

79-
{kind: LunaService, name: 'exec', service: 'luna://org.webosbrew.hbchannel.service', method: 'exec', onResponse: 'onExec', onError: 'onExec'}
79+
{kind: LunaService, name: 'exec', service: 'luna://org.webosbrew.hbchannel.service', method: 'exec', onResponse: 'onExec', onError: 'onExec'},
80+
{kind: LunaService, name: 'systemReboot', service: 'luna://org.webosbrew.hbchannel.service', method: 'reboot' }
8081
],
8182

8283
autostartEnabled: false,
@@ -129,7 +130,7 @@ module.exports = kind({
129130
},
130131
reboot: function () {
131132
console.info("Sending reboot command");
132-
this.$.exec.send({command: 'reboot'});
133+
this.$.systemReboot.send({});
133134
},
134135
start: function () {
135136
console.info("Start clicked");

0 commit comments

Comments
 (0)