Thread: Reboot command?
View Single Post
Old 04-13-2023, 11:57 AM   #1
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 5,892
Karma: 12981955
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Solved - PocketBook reboot command?

Non-root and firmware above v5
This simple command seems to work:
Code:
iv2sh reboot
Rooted devices should also be able to run:
Code:
/mnt/secure/su reboot

Non-root and firmware below v5 (and older devices?)
A reboot script that piggybacks off Koreader's restart option:

Code:
#!/bin/sh

koreader=/mnt/ext1/applications/koreader
picview=/ebrmain/cramfs/bin/picviewer.app
bootlogo=/ebrmain/logo/bootlogo/PocketBook.bmp

cd $koreader

# create reboot.lua within applications/koreader dir
if [ ! -e "reboot.lua" ]; then
  echo "#!./luajit" >> reboot.lua
  echo "require(\"setupkoenv\")" >> reboot.lua
  echo "local DataStorage = require(\"datastorage\")" >> reboot.lua
  echo "G_reader_settings = require(\"luasettings\"):open(" >> reboot.lua
  echo "DataStorage:getDataDir()..\"/settings.reader.lua\")" >> reboot.lua
  echo "local Device = require(\"device\")" >> reboot.lua
  echo "Device:reboot()" >> reboot.lua
fi

# opens the default pocketbook logo to act as restart splash screen
$picview "$bootlogo" & ./reboot.lua

Last edited by neil_swann80; 04-17-2023 at 08:27 AM.
neil_swann80 is offline   Reply With Quote