Shutdown Menu Request

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
DEcosse Offline
Senior Member
Posts: 221
Joined: Feb 2014
Reputation: 3
Post: #1
I run LibreELEC from one of my systems from an SD Card, retaining the original Android OS on the NAND memory, so I can Dual-Boot.

It was just pointed out to me that there is a 'Reboot to Nand' option in the Shutdown menu of the LibreELEC Confluence Skin;
I had never noticed it because as soon as I install a new system, I switch to BGN Big Grin
That option just does not appear in BGN so I was oblivious to it.

I created a new image of LibreELEC and left it in the Confluence Skin and sure enough, it is right there as one of the options in the Shutdown menu.

It's not part of the BGN menu as-is, but obviously the capability is there within the LibreELEC OS:
How can I create a sub-menu command to utilize "Reboot to NAND" ?

It would really be most useful to have this.
This would be applicable for both BGN v5.x and v6.x
(This post was last modified: 2017-01-11 21:07 by DEcosse.)
find quote
trogggy Offline
Posting Freak
Posts: 2,700
Joined: Mar 2011
Reputation: 128
Location: Monthou sur Cher, France
Post: #2
FWIW I've added this to a submenu in xonfluence - the relevant entry in my settings.xml is:
<setting id="UserSubFive.7.Path" type="string">System.ExecWait(&quot;/usr/sbin/rebootfromnand&quotWink</setting>

I'd imagine it might be awkward to add to the shutdown menu (unless you're editing it yourself), as AFAIK it's only relevant on kszaq's amlogic libreelec builds.

Edit: no, I don't have a smiley in my settings.xml.
(This post was last modified: 2017-01-11 21:57 by trogggy.)
find quote
DEcosse Offline
Senior Member
Posts: 221
Joined: Feb 2014
Reputation: 3
Post: #3
Can you give any guidance here @Tgxcoporation?
Don't expect you to include this option universally, (unless you want to, of course Big Grin) but if you can suggest how I would go about how/where to add it myself, that would be great.
find quote
Tgxcorporation Offline
Skilled Skinner
Posts: 1,060
Joined: May 2012
Reputation: 41
Location: Italy
Post: #4
Basically you have to add an item to the list of items in DialogButtonMenu.xml such as:

Code:
<item id="141">
   <visible>!Skin.HasSetting(QuitMenu_Hide_Reboot)</visible>
   <visible>System.CanReboot</visible>
   <visible>System.Platform.Android</visible>
   <onclick>dialog.close(all,true)</onclick>
   <onclick>System.ExecWait("/usr/sbin/rebootfromnand")</onclick>
   <label>Reboot from Nand</label>
   <thumb>topbar/topbar_restart_nofocus.png</thumb>
   <icon>topbar/topbar_restart_focus.png</icon>
</item>

Or in a simplier way, use the Favourites feature described here:

http://forum.kodi.tv/showthread.php?tid=...pid2388757
find quote
DEcosse Offline
Senior Member
Posts: 221
Joined: Feb 2014
Reputation: 3
Post: #5
Thanks!
I had to delete the Android line and after that it worked!
That included it in the hidden toolbar menu ....

Then I created a custom submenu item under main menu quit
using Custom command - System.ExecWait("/usr/sbin/rebootfromnand")
find quote
DEcosse Offline
Senior Member
Posts: 221
Joined: Feb 2014
Reputation: 3
Post: #6
I just did this on Kodi 17 version (kszaq LibreElec Beta 8.0) -for BGN 6.x also

Similarly amend the DialogButtonMenu.xml

Code:
<item id="29">
        <label>Reboot from internal</label>
        <onclick>System.ExecWait("/usr/sbin/rebootfromnand")</onclick>
        <visible>System.CanReboot</visible>
</item>
(This post was last modified: 2017-01-19 19:54 by DEcosse.)
find quote