Skip to content

Commit

Permalink
Amlogic-ng/Kodi: port "Reboot from eMMC/NAND" option
Browse files Browse the repository at this point in the history
  • Loading branch information
Portisch committed Jul 30, 2019
1 parent 28d5740 commit ca2bb0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ index 90839ff..c62e97f 100644
<visible>System.CanReboot</visible>
</item>
<item>
+ <label>Reboot to eMMC/NAND</label>
+ <label>Reboot from eMMC/NAND</label>
+ <onclick>System.ExecWait("/usr/sbin/rebootfromnand")</onclick>
+ <onclick>Reset()</onclick>
+ <visible>System.CanReboot</visible>
Expand Down
8 changes: 8 additions & 0 deletions projects/Amlogic-ng/filesystem/usr/sbin/rebootfromnand
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2016-2018 kszaq (kszaquitto@gmail.com)
# Copyright (C) 2019-present Team CoreELEC (https://coreelec.org)

if /usr/sbin/fw_printenv whereToBootFrom > /dev/null 2>&1; then /usr/sbin/fw_setenv whereToBootFrom internal; fi
/usr/sbin/fw_setenv bootfromnand 1

0 comments on commit ca2bb0b

Please sign in to comment.