Add notes for auto-serial check
This commit is contained in:
parent
7b28751871
commit
f1a4b4b251
1 changed files with 6 additions and 7 deletions
13
notes.md
13
notes.md
|
@ -1,8 +1,7 @@
|
||||||
Boot time isn't static.
|
Auto-serial:
|
||||||
Boot time can (in theory) be sped up by forcing a clearing of the screen of all vitals before rebooting.
|
|
||||||
Clearing the screen of all vitals is theoretically possible in the UI menu, with a Spoof Touch, but I don't know the object name of the 'clear' button.
|
|
||||||
|
|
||||||
Can check for reboot completed by reading in serial, check for `reboot: Restarting System`
|
`echo 'y1q' | python3 -m debugmenu` contains the serial number. Search keyword is: "DtCtrlCfgDeviceSerialNum"
|
||||||
once done, read for `login:`
|
split on `\n`, collect into Vec<&str>. Iterate over Vec:
|
||||||
|
if doesn't contain colon, continue
|
||||||
First command sent to shell gets dropped (possibly due to timing issue?)
|
split_once on colon
|
||||||
|
if first half is keyword, trim second half, remove `"` characters, save as serial
|
||||||
|
|
Loading…
Add table
Reference in a new issue