I've been looking at the script /usr/sbin/shipping_mode which is invoked by the ;shpm search bar command and the files that it sources and calls. I think that it is possible to put together a script powers a Kindle off without wiping documents, settings, etc.
Does anyone think it will work, or see any problems with it?
Has anyone tried something similar?
This is a prototype script and will likely display the critical battery screen, but something more suitable could be developed.
Proposed power_off.sh
Code:
#!/bin/sh
source /etc/upstart/functions
source /etc/upstart/shutdown_modes
# flash the screen multiple times to fully clear to white
eips -c -w gc16 -f
usleep 1250000
eips -c -w gc16 -f
usleep 1250000
start shutdown SHUTDOWN_MODE=$SHUTDOWN_MODE_CRITBATT