If you look in the PocketBook::reboot() function, they make a call into the Inkview library to initiate the reboot. You could write your own trivial Inkview application that just makes the same call and run that. Whatever you do, you will probably need to go through the Inkview interface because you don't have the root privileges required to change the run level from the command line.
In case you don't have the code, here is the call:
inkview.iv_ipc_request(C.MSG_REBOOT, 1, nil, 0, 0)
That is written in LUA, in C it would probably be:
iv_ipc_request(MSG_REBOOT, 1, NULL, 0, 0);
Last edited by rkomar; 04-13-2023 at 01:21 PM.
|