From f1a4b4b251124b98e1f610e04fd8e986d68d400f Mon Sep 17 00:00:00 2001 From: Blizzard Finnegan Date: Mon, 19 Jun 2023 13:42:26 -0400 Subject: [PATCH] Add notes for auto-serial check --- notes.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/notes.md b/notes.md index 9c5d16e..db3d9d9 100644 --- a/notes.md +++ b/notes.md @@ -1,8 +1,7 @@ -Boot time isn't static. -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. +Auto-serial: -Can check for reboot completed by reading in serial, check for `reboot: Restarting System` -once done, read for `login:` - -First command sent to shell gets dropped (possibly due to timing issue?) +`echo 'y1q' | python3 -m debugmenu` contains the serial number. Search keyword is: "DtCtrlCfgDeviceSerialNum" +split on `\n`, collect into Vec<&str>. Iterate over Vec: + if doesn't contain colon, continue + split_once on colon + if first half is keyword, trim second half, remove `"` characters, save as serial